Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Don't want to commit a file

carolyn cheng July 21, 2015

I have a file I need to change on my local system.  I don't want to commit it.  I don't want to remove it from repository either.  How should I do that?

2 answers

1 vote
Tim Crall
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 21, 2015

Can you just refrain from staging it when you do future commits?

0 votes
Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2015

If you always need to modify it, but not commit it, it probably should not be under source control. Delete it, commit the deletion, and add it to the .gitignore file. (Restore the file afterwards, if/when needed locally.) It will never show up as an uncommitted change.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events