Skip to content

Instantly share code, notes, and snippets.

@brookback
Created September 30, 2019 09:21
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 brookback/dd2da5e0fbacf853301f03f6270cbd19 to your computer and use it in GitHub Desktop.
Save brookback/dd2da5e0fbacf853301f03f6270cbd19 to your computer and use it in GitHub Desktop.
[alias]
# View commits in local branch vs. master
current = !"git log $(git rev-parse --abbrev-ref HEAD) ^master --no-merges"
# View unpushed commits
unpushed = !git log @{u}..HEAD
# View all unpushed commits on all branches
all-unpushed = !git log --branches --not --remotes --oneline
# View latest unpushed commits on all branches
unpushed-branches = !git log --branches --not --remotes --oneline --decorate --simplify-by-decoration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment