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

找了好久。以前都是命令行敲哪些不要纳入版本库,原来在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"配置忽略文件"



你可能感兴趣的:(git,ignore,不纳入版本库)