PA-*_*-GW 2 windows git global
O.,我想知道是否有办法全局忽略我机器上的 .idea 文件夹?我的项目中没有或不需要 .gitignore 文件,但令人恼火的是,在尝试添加和提交实际更改时 .idea/ 文件夹不断出现。
任何的想法?
小智 7
# add this to ~/.gitconfig:
[core]
excludesfile = ~/.gitignore
Run Code Online (Sandbox Code Playgroud)
# create ~/.gitignore
.idea
Run Code Online (Sandbox Code Playgroud)
.idea 在您机器上的任何 git 存储库中都将被忽略。
归档时间: |
|
查看次数: |
1502 次 |
最近记录: |