track

Git: How to add an untracked file back to the repository?

If you want to add certain files that was previously removed from Git repository, follow the steps given below.

STEP 1: remove the file reference in .gitignore

STEP 2: remove the cached reference from git.

$ git rm –cached sampleconfig.txt
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