Skip to content

Instantly share code, notes, and snippets.

@cesarizu
Created February 6, 2018 19:20
Show Gist options
  • Save cesarizu/cee0a7fab766580fc17f7b4f0bf00314 to your computer and use it in GitHub Desktop.
Save cesarizu/cee0a7fab766580fc17f7b4f0bf00314 to your computer and use it in GitHub Desktop.
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