swift項目初始化並添加忽略檔案Swift.ignore

來源:互聯網
上載者:User

標籤:wal   amp   隱藏檔案   one   https   push   kill   src   項目建立   

1 先去GitHub上去把最新的忽略檔案下載下載 https://github.com/github/gitignore 

2 然後找到Swift.gitignore  把裡面的 pod 前面的# 刪除然後儲存 

3 去碼雲上建立一個項目 然後把項目複製到本地  

git clone  [email protected]:********

把剛剛的忽略檔案放在複製下來的項目裡 進去  cd 當前的項目  然後輸入命令  

mv Swift.gitignore  .gitinore  隱藏忽略檔案 

/*

defaults write com.apple.Finder AppleShowAllFiles Yes && killall Finder //顯示隱藏檔案

defaults write com.apple.Finder AppleShowAllFiles No && killall Finder //不顯示隱藏檔案

*/

然後在當前項目建立一個Swift項目  把忽略檔案和項目提交碼雲上 

git add .

git commit -m"初始化項目比添加Swift忽略檔案"

git push

至此所以項目初始化完畢

swift項目初始化並添加忽略檔案Swift.ignore

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.