SVN commands commonly used in the development of IOS projects
1. Meaning of the status of the file:
a:add, new file
A +: Modify the picture resource name
c:conflict, Conflictd:delete, deletingm:modify, Local has been modifiedG:modify and merged, local file modification and merging with the serveru:update, updating from the serverr:replace, file is replacedi:ignored, ignoring
?: not recognized, requires manual add
2.SVN Shorthand
SVN checkout Shorthand SVN Co
SVN update shorthand SVN up (note that after you commit the code file, the version number remains in the previous version, so you will need svn up after submission, and then SVN info to see the latest information)
SVN state Shorthand SVN st (view the status of the file, whether it is modified, deleted, etc, very important commands)
SVN commit-m "description" Shorthand svn ci-m ' description ' (Commit code file)
SVN info View information, including the current version of the last modified person
3.SVN the steps you must make to commit your code
Common steps for SVN commands:
1). CD working directory (can drag files or folders to the terminal, or LS, CD Linux command)
2). SVN info (View information)
3). SVN Up (update code to the latest version)
4). SVN St (view the status of which files have changed)
! exclamation Mark SVN Delete controllers/loginviewcontroller.m
? question mark (not recognized, add a bit) SVN add controllers/login/loginviewcontroller.m
5). SVN ci-m "Update Code"
Note: 1. If you encounter a tree conflict or lock when you Update (terminal or Xcode), you need to use the
SVN cleanup to unlock
2. If there is a change in the working directory, be sure to update the projectsettings file, otherwise there will be some files can not be found, resulting in a compilation error, because the directory you created is not committed to the server
Recommendation: SVN terminal commands and Xcode are used in conjunction with SVN, more efficient! Encountering conflicts it is best to use Xcode to solve it line by row!
iOS svn common command considerations, Xcode SVN