Wednesday, 28 July 2021

GIT VS SVN Commands

 https://backlog.com/git-tutorial/reference/commands/


Comparison table of Git-Subversion commands

CommandOperationSubversion
git cloneCopy a repositorysvn checkout
git commitRecord changes to file historysvn commit
git showView commit detailssvn cat
git statusConfirm statussvn status
git diffCheck differencessvn diff
git logCheck logsvn log
git addAdditionsvn add
git mvMovesvn mv
git rmDeletesvn rm
git checkoutCancel changesvn revert1
git resetCancel changesvn revert1
git branchMake a branchsvn copy2
git checkoutSwitch branchsvn switch
git mergeMergesvn merge
git tagCreate a tagsvn copy2
git pullUpdatesvn update
git fetchUpdatesvn update
git pushIt is reflected on the remotesvn commit3
gitignoreIgnore 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.



No comments:

Post a Comment