Git & Svn Command Comparison
From
https://backlog.com/git-tutorial/reference/commands/
Operation | Git | Svn |
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 revert (*1) |
Cancel change | git reset | svn revert (*1) |
Make a branch | git branch | svn copy (*2) |
Switch branch | git checkout | svn switch |
Merge | git merge | svn merge |
Create a tag | git tag | svn copy (*2) |
Update | git pull | svn update |
Update | git fetch | svn update |
It is reflected on the remote | git push | svn commit (*3) |
Ignore file list | gitignore | .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.