Skip to content

Instantly share code, notes, and snippets.

@isabellachen
Last active May 7, 2018 12:33
Show Gist options
  • Save isabellachen/4cb1e7ea0c730d46c37a668ab36a9944 to your computer and use it in GitHub Desktop.
Save isabellachen/4cb1e7ea0c730d46c37a668ab36a9944 to your computer and use it in GitHub Desktop.
Fetch and rebase changes from remote

Jack and Jill are working on a feature together. Jack has pushed to the feature branch on github. Before Jill pushes her changes, she needs to fetch and rebase her changes over Jack's.

git fetch
git rebase //replay Jill's commits over Jack's
gss  (list files with conflicts)
>> go to atom and fix the conflicts
git add <file-with-conflicts.js> or git add .
git rebase --continue (continue with rebase)
gss (check there are no conflicts)
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment