您的位置:首页 > 其它

.gitignore可以指定哪些文件不纳入版本库的管理

2015-10-15 14:15 344 查看
找了好久。以前都是命令行敲哪些不要纳入版本库,原来在ignore中这样弄下就好了,真方便。

.gitignore
--------------------------------------------------------------------------------
.gitignore可以指定哪些文件不纳入版本库的管理
参考网址:https://github.com/github/gitignore

将以下命令一次性粘贴到命令行中
--------------------------------------------------------------------------------
echo -e "# Xcode
#
build/
*.pbxuser
*.mode1v3
*.mode2v3
*.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control #
# Pods/" > .gitignore


上边命令输入回车后还需 1:git add .gitignore 2 git commit .gitignore -m"配置忽略文件"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: