Exclude a file/directory from SVN in Xcode with SCM

前端 未结 2 1118
礼貌的吻别
礼貌的吻别 2021-02-10 14:59

I would like to exclude a directory from my SVN (I\'m using Xcode\'s built in SCM). It\'s not checked in but I\'m just tired of unselecting it from checkin.

Most of my S

2条回答
  •  你的背包
    2021-02-10 15:31

    As mentioned in this SO question (with answers about Xcode's SVN integration), you could still go with the "command-line".

    See How to ignore a directory with SVN?

    svn propset svn:ignore dirname .
    

    You can see in this Paul Solt's blog entry an example of a new project, managed by XCode, but with a SVN ignore command

    Make a project in Xcode and then use Terminal and execute the commands. If you aren’t familar with SVN check out the documentation.

    cd LOCAL_PROJECT_PATH
    svn mkdir SVN_REPOSITORY_LOCATION/PROJECT_NAME
    svn co SVN_REPOSITORY_LOCATION/PROJECT_NAME .
    svn add *
    svn revert --recursive build
    svn ps svn:ignore build .
    svn ci
    

    The commands:

    • create a folder in your SVN repository.
    • Next it checks out the remote repository folder into the local project folder and add all of the project files.
    • Once the files are “added” you’ll want to remove the build directory and ignore it from your SVN repository.
    • Lastly it’ll commit the changes and your project is in the repository.

提交回复
热议问题