-
Hide local changes:
$ git stash
-
Fetch remote changes:
$ git fetch <remote name> <remote branch>
-
Rebase remote changes:
$ git rebase <remote name>/<remote branch>
-
[Optional] Resolve conflicts and continue rebase:
$ git add <conflicted file>... $ git rebase --continue
-
Check history to verify that local commits are on the top of the log stack:
$ git log
-
Re-apply local changes and run tests to verify if commits are ok:
$ git stash pop
-
Push to remote:
$ git push <remote name> <remote branch> # Or if you want to push to a remote branch with a different name $ git push <remote name> <local branch>:<remote branch>
-
Submit a merge request on the website.
Last active
September 30, 2018 19:47
-
-
Save haixuanc/c184b153c347a29c74b0 to your computer and use it in GitHub Desktop.
Git workflow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment