Created
May 24, 2016 14:21
-
-
Save snoby/7ffbdda69fff991575b11cb71c9aeb8b to your computer and use it in GitHub Desktop.
unpushed but committed changes in all branches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias git-list-unpushed='git for-each-ref --format "%(refname)" | grep "refs/remotes" | sed "s@refs/remotes/@@" | while read branch; do echo "$branch"; git cherry -v "$branch" "${branch/origin\//}"; done' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment