Skip to content

Instantly share code, notes, and snippets.

@markoa
Created January 7, 2010 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markoa/271398 to your computer and use it in GitHub Desktop.
Save markoa/271398 to your computer and use it in GitHub Desktop.
git-svn commands
# Clone a repo (like git clone):
git-svn clone svn+ssh://markoa@svn.gnome.org/svn/paperbox
# You should be on master branch (check with git branch)
# After compiling, append svn:ignore settings to
# the default git exclude file:
git-svn show-ignore >> .git/info/exclude
# Do some work and commit locally to git:
git commit ...
# Let's say something has been committed to SVN,
# rebase your local changes against the latest
# changes in SVN:
git-svn rebase
# Now commit your local changesto SVN, as well
# as automatically updating your working HEAD:
git-svn dcommit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment