I've placed .idea/ in both my ~/.gitignore_global
and in my projects specific .gitignore
file (and committed the later) but I still see the file as unstaged.
How can I really ignore these files?
I've done this:
git config --global core.excludesfile ~/.gitignore_global
but it didn't help.
the filename is ok:
$ ls ~/.gitignore_global
/home/durrantm/.gitignore_global
These files are added into the git repository already. Do the git rm --cached .idea
then commit.
Maybe you also have to run a filter-branch, to completely wipe out the folder of your entire repository. On github you'll find a handy documentation for that thing.
尝试git update-index --assume-unchanged
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.