Objective
Only the use of cornerstone to use SVN is described here.
Cornerstone is a very useful SVN tool under the Mac OS X system, and of course versions is also available, but it's not as good as cornerstone.
Disclaimer: Cornerstone is a charge, if the company needs to use, it is recommended to let the company buy software use copyright, support genuine. I use the company to purchase the right to use the version. Of course there are cracked versions of the Internet.
For want to crack version, we can Baidu a bit, there are a lot of downloads.
Installation Cracking method
1, before the installation of the local date changed to a future date, and then double-click the installation, according to the specified process action
2, if you forget to change the date before installation, you can only change the way to crack plist
A. Show system hidden files, open terminal, input, enter
defaults write ~/Library/Preferences/com.apple.finder AppleShowAllFiles -bool true
B. Restart Finder Press Command+option+esc to open the dialog box, select Finder, click Re-open
C. Go to ~/library/preferences/byhost in the Finder, locate the Globalpreferences........plist file, and delete the "Com.zennaware.Cornerstone" containing This line of words, which clears the installation record
D. After clearing the installation record, if there is no cornerstone in the computer at this time, then follow the 1 steps to install, if already installed, then after uninstalling, follow the 1 procedure to install again, that is to get permanent cracked version
Software interface
Add Warehouse
Click the + plus sign in the Repository column in the left column to add repository:
If your company's repository address for you starts with svn://, select SVN Server. If you are starting with HTTP HTTP//or https://, select
SVN Server Configuration
Suppose the company gives you the SVN address: svn://192.168.1.2/svn/ios, user name: Huangyibiao, Password: 123456:
1. Fill in the server column, which is the host address: 192.168.1.2
2. Fill in port port number, of course, sometimes do not need to fill in, use the default can be
3. Fill in Repository path: This is the access path for the remote repository, for this is/svn/ios
4. When completed, it will be generated automatically. If you do not complete this svn://[email protected]:p ort/repositorypath format, then you fill in the wrong
5. Enter the user name
6. Enter your password
HTTP Server Configuration
As with SVN server, there is only one place to be aware that if the address is https://, you will need to modify the protocol option to HTTPS, or else add the failure.
Basic use
1. Upload the project to the Remote repository repository
You can drag a file or folder directly into the Repository subfolder, or select the Import button above the software to upload, pop-up options to fill in the location and name, and then select Import.
2. Exporting export
Clicking Export Exports the project, the exported project is not associated with the current SVN source file, external modification of the exported project will not affect the original project.
3. Cut Branch Checkout
The Check out file creates a working copy, which is associated with the source file in the library, and when there is a new version (modified by others) or local modification (self-modification), working copy displays the number of changes, the number of white is modified by others, and the number of gray is the number of changes I have made. So if you are a developer in the project, you can choose check out, if you just download the view, do not want your own changes affect the whole project, it is best to choose Export
4. Version Management
Each commit creates a new version, which will save all historical versions in Repository, and can be retrieved by modifying people and submitting information, so using SVN development gives you a good control over how the code fixes the problem when there are unresolved and unknown bugs in the project:
Precautions
SVN facilitates multiple people to develop code merging issues for the same project, but there are a few things to note:
1. First update and then submit
When you see a new version (that is, the companion has already submitted the code), update the code until working copy no longer shows the white circle, and then run the code to determine that it can be run and function correctly before committing its own code, which can cause multiple conflicts or bugs in the project, and it is difficult to troubleshoot the cause
2. Complete the independent function before submitting, and carefully fill in the submission information
Each completion of a separate function, or solve a bug before committing the code, do not repeat the submission repeatedly, resulting in too many versions, and must fill in the submission of information, the completion of this completed what function, convenient to search through the message to view the historical version
3. Conflict files
In principle, the same group of developers are best not to operate in the same file, but sometimes must go to other files to operate, or a mistake, if at the same time multiple people in the same file to modify the code, the author will appear after the version of the conflict file, there will generally be three different suffixes of the same name file
4..mine files: Changes I have made
Two. r0xx files: xx is a number, the number is smaller for the change before the file, the larger for the changed file, in the file will have <<<< mine. r0xx and >>>>> the words contained in the code, that is, the place of the conflict, In this case, please discuss with colleagues in the group or delete some of your own files to debug, repair the file
5. For newly Added files
Submit a newly added file as a question mark (?) Status, select Add to working copy after right click and commit
The meaning of shorthand in 6.svn.
A:add, New
C:conflict, conflict
D:delete, deleting
M:modify, Local has been modified
G:modify and merged, local file modification and merging with the server
U:update, updating from the server
R:replace, replacing from server
I:ignored, ignoring
iOS using SVN
For iOS projects: If a project or file does not open, select if the. project file cannot be opened:
Display package content, such as open files with documents, project.pbxproj
search .mine
, the .mine
part <<<< >>>>
of the code before and after the deletion, the project can be opened, if build
a xib
file does not open the error, select, open with the document, You can solve build
the problem with the same operation as above
How SVN recovers to a certain version of iOS development (take cornerstone as an example)
http://blog.csdn.net/yuedong56/article/details/21524557
Cornerstone is a popular SVN version management tool on Mac OS.
How do I revert to a version?
1. Select the project you want to restore
2. Click "Working Copy"--->> "Revert ...".
3. Select the version number you want to restore, then click "Revert".
4. Prompt you to have some changes in the current project, but not yet submitted, "Discard xxx"-After the click of the current modified content will be canceled, "Copy XXX"-click will be copied a copy of the code to the Trash.
5. Click "Discard XXX", the local project has been updated to the selected version, if you want to update the server also to the selected version, you can commit again.
The use of SVN under MAC---Cornerstone to use SVN