Skip to content

Instantly share code, notes, and snippets.

@carloschulo
Last active October 23, 2019 14:12
Show Gist options
  • Save carloschulo/fbce2bcc7c2dd1e9880c5c4cc28eec08 to your computer and use it in GitHub Desktop.
Save carloschulo/fbce2bcc7c2dd1e9880c5c4cc28eec08 to your computer and use it in GitHub Desktop.
How to rebase
//make sure you have the most up-to-date version of the branch you're rebasing on.
git checkout develop
git pull
// go back to feature branch
git checkout updated-card
//rebase!
git rebase develop
// If you get conflicts, git will tell you
git status
//Once everything is fixed, add and commit the changes
//Then run the following so git can rebase
git rebase --continue
//push
git push --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment