Gitignore设置(包含Eclipse Git插件)

1 git忽略设置

1.1 用Git Bash设置

1.1.1 全局设置

git config --global core.excludesfile /c/Users/WJC/Pictures/.gitignore

1.1.2 当前git库设置

#找到当前git所在目录,并运行Git Bash,执行如下命令:
git config core.excludesfile /c/Users/WJC/Pictures/.gitignore

1.2 Eclipse(EGit)设置

Window->Preferences->Team->Git->Configuration

1.2.1 全局设置

选择User Settings,点击Add Entry,Key:core.excludesfile,Value:gitignore文件所在位置

1.2.2 当前git库设置

选择Repository Settings,点击Add Entry,Key:core.excludesfile,Value:gitignore文件所在位置

posted @ 2018-01-13 10:42  wjc920  阅读(478)  评论(0编辑  收藏  举报