commit

Git: How to make a file not to be tracked in future commits?

As a developer, you may come across scenarios when you think that certain SPECIAL files should not be tracked in Git commits.

As the first step, commit all changes in your repository and then add those SPECIAL files to .gitignore

To remove a file (not delete) from getting tracked in your Git repository use:

$ git rm –cached sampleconfig.txt

To remove all files that is referenced in your .gitignore use:

$ git rm -r –cached .
Continue Reading…

Share it onShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
Kurinchi Calendar
December 2017
M T W T F S S
« Oct    
 123
45678910
11121314151617
18192021222324
25262728293031