Cheatsheet For Git As An Svn Client

ADVERTISEMENT

Cheatsheet for Git as an SVN Client
SVN command
Recommended alternative
svn add <file>
git add <file>
svn blame <file>
git blame <file>
svn cat <file>
git show HEAD:<file>
svn checkout <url>
git svn clone --stdlayout <url>
svn cleanup
No similar command
svn commit
git commit -a
possibly followed by
git svn dcommit
svn copy <old-branch> <new-branch>
git branch <new-branch> <old-branch>
svn delete <file>
git rm <file>
svn diff <file>
git diff <file>
svn export
git archive
(or just cp -a *)
svn help
git help
svn import <directory>
git add <directory>
svn info
git svn info
svn list <directory>
git show HEAD:<directory>
svn lock
No similar command
svn log
git log
svn merge <branch>
git merge --squash <branch>
svn mkdir <dir>
mkdir <dir>
(git doesn't track directories)
svn move <file>
git mv <file>
svn propdel
No similar command
svn propedit
No similar command
svn propget
git svn propget
svn proplist
git svn proplist
svn propset
No similar command
svn resolved <file>
git add <file>
svn revert <file-or-directory>
git checkout <file-or-directory>
svn status
git status
svn switch <url>
git checkout <branch>
svn unlock
No similar command
svn update
git svn rebase
or
git update
(if this was enabled for you)

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go