Skip to content

Instantly share code, notes, and snippets.

@mrhieu
Created January 24, 2019 08:08
Show Gist options
  • Save mrhieu/104e86a93068113710cf05f1d47de432 to your computer and use it in GitHub Desktop.
Save mrhieu/104e86a93068113710cf05f1d47de432 to your computer and use it in GitHub Desktop.
List of branches that have been merged to develop and not on master
$ git log origin/master..origin/develop --oneline | grep "Merge pull request" | grep -v "from refuel4/master" | sed "s/.*from [^\/]*\//Branch: /g"
# Example output:
# Branch: fix/4031-batman-hits-a-car
# Branch: feature/3953-iron-man-works-hard
# Branch: fix/3995-global-warming
# Branch: feature/3953-deploy-rocket-to-mars
# Branch: fix/4024-deadpool-got-cancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment