Backlog uses cookies to deliver our services. By visiting our website, you agree to the use of cookies as described in our Cookie Policy.

Comparison table of Git-Subversion commands

Command Operation Subversion
git clone Copy a repository svn checkout
git commit Record changes to file history svn commit
git show View commit details svn cat
git status Confirm status svn status
git diff Check differences svn diff
git log Check log svn log
git add Addition svn add
git mv Move svn mv
git rm Delete svn rm
git checkout Cancel change svn revert1
git reset Cancel change svn revert1
git branch Make a branch svn copy2
git checkout Switch branch svn switch
git merge Merge svn merge
git tag Create a tag svn copy2
git pull Update svn update
git fetch Update svn update
git push It is reflected on the remote svn commit3
gitignore Ignore file list .svnignore
  1. Revert in SVN is the cancel of change, but Revert in Git is the commit for negation. The meanings of Revert are different.
  2. Branch and tag are the same in the structure in SVN, but they are clearly different in Git
  3. SVN does not have the concept of local repository/remote repository, accordingly commit is directly reflected in the remote. However, Git has different reflecting methods for reflecting to the local repository and for reflecting to the remote repository.