We use Git and SVN for managing projects.
WordPress itself use the SVN for hosting plugins and themes. I have created a WordPress Theme and Plugins. But, I personally not use SVN though command line.
I was always querying about,
- How to work on SVN though command line?
- Which are the basic SVN commands like Git?
- What is the difference between Git and SVN commands?
I’ll create an article on all the above questions which I have tried to resolve soon.
For now, I have created a table of Git vs SVN commands. You can also check below the table of Git vs SVN commands for reference.
|Description||GIT Command||SVN Command|
|Copy a repository||git clone||svn checkout|
|Record changes to file history||git commit||svn commit|
|View commit details||git show||svn cat|
|Confirm status||git status||svn status|
|Check differences||git diff||svn diff|
|Check log||git log||svn log|
|Addition||git add||svn add|
|Move||git mv||svn mv|
|Delete||git rm||svn rm|
|Cancel change||git checkout||svn revert1|
|Cancel change||git reset||svn revert1|
|Make a branch||git branch||svn copy2|
|Switch branch||git checkout||svn switch|
|Merge||git merge||svn merge|
|Create a tag||git tag||svn copy2|
|Update||git pull||svn update|
|Update||git fetch||svn update|
|It is reflected on the remote||git push||svn commit|
|Ignore file list||.gitignore||.svnignore|