您的位置:首页 > 其它

Git .gitignore

2017-05-25 10:14 134 查看
我们看一个 
.gitignore
 文件的例子:
# no .a files
*.a

# but do track lib.a, even though you're ignoring .a files above
!lib.a

# only ignore the TODO file in the current directory, not subdir/TODO
/TODO

# ignore all files in the build/ directory
build/

# ignore doc/notes.txt, but not doc/server/arch.txt
doc/*.txt

# ignore all .pdf files in the doc/ directory
doc/**/*.pdf
#IF GITIGNORE IS NOT WORKING,JUST RUN:# git rm -r --cached . # git add .# git commit -m ".gitignore is now working" 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: