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文件所在位置