Skip to content

Instantly share code, notes, and snippets.

@LolWalid
Created December 5, 2019 09:56
Show Gist options
  • Save LolWalid/0d0144c25e803461d2fba86856199cfa to your computer and use it in GitHub Desktop.
Save LolWalid/0d0144c25e803461d2fba86856199cfa to your computer and use it in GitHub Desktop.
Git Rebase
# fetch data from master
git co master
git pull origin master
git co feature/branch
git rebase -i diverged_commit
# Keep only the first commit (the upper one, dont know why...)
git rebase master
# solve conflict
git add .
git rebase --continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment