Skip to content

Instantly share code, notes, and snippets.

@kchristidis
Last active May 20, 2017 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kchristidis/da8fbe92b72e4faa607dfbd97febf0bb to your computer and use it in GitHub Desktop.
Save kchristidis/da8fbe92b72e4faa607dfbd97febf0bb to your computer and use it in GitHub Desktop.

Committing a change

  1. git checkout master
  2. git pull
  3. git checkout -b TOPIC_BRANCH origin/master
  4. [do your thing here]
  5. git commit -a -s
  6. git pull --rebase origin master
  7. git rebase -i origin/master # if you want to squash commits
  8. git show
  9. git review -R

Updating a change (new patchset, existing change)

  1. git commit -a --amend
  2. git review

If you want to push a draft

Replace step 9 above with: git push origin HEAD:refs/drafts/master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment