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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章