Created
February 6, 2018 19:20
-
-
Save cesarizu/cee0a7fab766580fc17f7b4f0bf00314 to your computer and use it in GitHub Desktop.
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
mkdir test | |
cd test | |
git init . | |
echo X > X | |
git add X | |
git ci -m "First" | |
git branch first | |
echo Y > X | |
git add X | |
git ci -m "Second" | |
git co first | |
git rebase master --preserve-merges | |
# Nothing to do | |
git rebase master | |
# First, rewinding head to replay your work on top of it... | |
# Fast-forwarded first to master. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment