http://www.cnblogs.com/cqb-learner/p/5894475.html
oschina中新建項目,沒有swift. gitignore可選,需要手動下載,修改,添加進項目。
操作方法:
1、從 https://github.com/github/gitignore 獲取最新版本的 Swift.gitignore 文件
2、命令行 touch .gitignore創建文件,手動打開項目中.gitignore文件,把swift.gitignore文件中內容粘貼到.gitignore文件中,搜索 Pods/,去掉文件中的# Pods/前的“#”
3、將.gitignore提交到本地庫中
添加 .gitignore 文件之后,每次提交時不會將個人的項目設置信息(例如:末次打開的文件,調試斷點等)提交到服務器,在團隊開發中非常重要
注意:是否知道 .gitignore 是是否有團隊開發經驗的重要特征
.gitignore為隱藏文件,查看方法,執行完,重新啟動Finder
終端執行命令:
顯示:
defaults write com.apple.finder AppleShowAllFiles -bool true
隱藏:
defaults write com.apple.finder AppleShowAllFiles -bool false