Check out svn project in Mac
Check out svn project in Mac
Are you guys just transfer from Windows to Mac, which need to check out project from svn? If yes, this post may help you when checking out project in Mac by using terminal.
- Step 1: Maybe better to build a folder which can save your project
jack-pandemacbook:~ Jackchen$ mkdir workspace/
- Step 2: Then go to the folder which you just created, and the project will be saved in this folder later
jack-pandemacbook:~ Jackchen$ cd workspace/
- Step 3: Get project from svn by enter: svn co svn+ssh://example.com/..., which ”...” is your project where located
jack-pandemacbook:~ Jackchen$ svn co svn+ssh://example.com/code/firstproject
The following is important, if the account is fit your username in .ssh, it’s will be easy, just enter the psw of your account and then you can get the project, but if no(Your .ssh username is jacketchen@example.com and your svn account is jacket@exmaple.com), there is 2 ways to solve it:
-
Enter command with username:
jack-pandemacbook:~ Jackchen$ svn co --username jacket@example.com svn+ssh://example.com/code/firstproject
-
Change the username in .ssh, also there are several steps to do it:
Before go to .ssh, you have to back to the root by: cd ..
- Then go to .ssh: cd .ssh
- Then type: pico config
- Then type: User jacket
- Then save and exit by using Ctrl+O and Ctrl+X
- Step 4: OK, right now, you can enter your password without warning “Permission denied, please try again.” , and enjoy!
