How to add .gitignore file into Xcode project

后端 未结 2 1260
陌清茗
陌清茗 2020-12-14 15:08

When making sure that iPhone project could be installed as an exact copy into a brand new computer via version control (git), I just realized that .gitignore

2条回答
  •  星月不相逢
    2020-12-14 16:02

    This solution didn't work for me in XCode 8.0 and El Capitan.

    I opened a terminal and typed:

    defaults write com.apple.finder AppleShowAllFiles YES
    cd ../PATH_TO_GIT_ROOT 
    touch .gitignore
    

    Then relaunched Finder and my .gitignore file was visible. Edit per .gitignore documentation

提交回复
热议问题