git不跟踪某个文件/文件夹
编辑当前目录下.git/info/exclude文件
vim .git/info/exclude
我需要取消跟踪idea
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
.DS_Store
.idea
文件一样的操作
wq保存即可
git status查看
$git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean