Skip to content

Instantly share code, notes, and snippets.

@mmiliaus
Last active August 29, 2015 14:03
Show Gist options
  • Save mmiliaus/aeb54f91de1bd15259fc to your computer and use it in GitHub Desktop.
Save mmiliaus/aeb54f91de1bd15259fc to your computer and use it in GitHub Desktop.

101

git clone url -> svn checkout url
git pull -> svn update

git diff -> svn diff | less
git status -> svn status

git add -> svn add
git rm -> svn rm

git commit -a -> svn commit

git log -> svn log | less

git tag -a name -> svn copy ../trunk ../tags/name

git branch name -> svn copy ../trunk ../branches/name
git checkout branch -> svn switch ../branches/name

URL of the current SVN repo

svn info | grep 'URL' | awk '{print $NF}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment