Created
January 7, 2010 17:49
-
-
Save markoa/271398 to your computer and use it in GitHub Desktop.
git-svn commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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