Created
October 1, 2014 12:12
-
-
Save shadyvb/1f84b2662796f42a32a6 to your computer and use it in GitHub Desktop.
Git / SVN
This file contains hidden or 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
# switch to vip git branch | |
git checkout vip | |
# pull updates | |
svn up | |
# reset working tree | |
svn revert --recursive . | |
# try to merge the previous branch ( ie: GNDEV-88 ), but do not auto commit | |
git merge - --no-commit --no-ff | |
# see the svn diff, before committing | |
svn diff | more | |
# commit to svn | |
svn ci -m 'some message, probably contains branch name' | |
# commit to git branch | |
git add . | |
git commit -m 'SVN Rev. xxxx' | |
# push to github | |
git push | |
# return to previous branch | |
git checkout - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment