Skip to content

Instantly share code, notes, and snippets.

@cloudchen
Last active May 22, 2020 09:24
Show Gist options
  • Save cloudchen/6914845 to your computer and use it in GitHub Desktop.
Save cloudchen/6914845 to your computer and use it in GitHub Desktop.
check whether feature branches are fully merged into develop branch
#update remote info and prune all the remotes that are updated
git remote update -p
#check is there any unmerged commits (don't have to checkout local branch)
git branch --list -v -r --no-merged origin/develop origin/team/*/feature/*
#list unmerged commits of specific branch from preceding result
git log --oneline origin/develop..origin/team/name/feature/refactor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment