Difference between Git
"Git is Distributed Source Control", but SVN is not.Start Here
In SVN, we have to:
- create a new empty SVN repo
- find our project directory and import it to the repo
- checkout the code in the other places
Suppose:
- Repo directory: /User/heron/Downloads/svn_test
- Project directory: /User/heron/Downloads/project
- Checkout directory: /User/heron/Download/test
- you may have to replace your own directory path
create a new empty SVN repo
- mkdir /User/heron/Downloads/svn_test
- cd /User/heron/Downloads/svn_test
- svnadmin create .
find our project directory and import it to the repo
- svn import /User/heron/Downloads/project file:///Users/heron/Downloads/svn_test -m "init import"
- -m: following the content of the commit
checkout the code in the other places
- cd /User/heron/Download/test
- svn checkout file:///Users/heron/Downloads/svn_test
start using basic SVN commands
- svn log
- read commit logs
- svn diff
- review the changes from the last commit
- svn commit
- similar to "git commit" and "git push"
- commit current project
- ex. svn commit -m "the second commit"
- svn update
- similar to "git pull"
More Reference
- Git and SVN equivalent commands table (thanks Scott for telling me this link)
No comments:
Post a Comment