Stop git tracking your files
I’m a new git user. The question came up to me is after I created a git repository with git init
,
I suddenly changed my mind. That is to say, I don’t want git to track the directories and files in
this repository but of course I don’t want to lose my work either. git itself don’t have a command
for this situation but the fix is quit easy actually. As git keeps all of its files in the .git directory,
what I need to do is just to remove it.
Twitter · Facebook
Linkedin · Delicious
GitHub · Douban · Xbox Live