设置全局git忽略文件 gitconfig
1.查看git 全局配置
cat ~/.gitconfig
若配置为空加入以下内存
[user] email = zhaoyingjie@liquidnetwork.com name = zhaoyingjie [core] #全局忽略文件地址 excludesfile = /Users/zyj/Dropbox/.gitignore_global editor = vim # 快捷键地址 [alias] co = checkout br = branch ci = commit st = status
2.编写忽略文件内容 vim ~/.gitignore_global
venv/
dump.rdb
game_test.py