Skip to content

Instantly share code, notes, and snippets.

@lloydmeta
Last active January 27, 2018 03:37
Show Gist options
  • Save lloydmeta/a3c6be068693dd8e9e1e67e8276a2047 to your computer and use it in GitHub Desktop.
Save lloydmeta/a3c6be068693dd8e9e1e67e8276a2047 to your computer and use it in GitHub Desktop.
git refresh-from upstream
[alias]
retest-commit = commit --allow-empty -m \"Retest - empty commit\"
current-remote = !git config branch.`git name-rev --name-only HEAD`.remote
current-branch = symbolic-ref --short HEAD
refresh-from = !git pull $1 $(git current-branch) && git push && :
refresh-master = !git fetch -fu $1 master:master && git push $(git current-remote) master && :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment