Skip to content

Instantly share code, notes, and snippets.

@founddrama
Created April 29, 2013 14:24
Show Gist options
  • Save founddrama/5481886 to your computer and use it in GitHub Desktop.
Save founddrama/5481886 to your computer and use it in GitHub Desktop.
git branch -a --merged develop | grep remotes\/origin\/feature | sed 's/^[ \t]*//' | xargs -n 1 git log --pretty=format:"%an - %d - %ar %n" -1 | sort | cat
@founddrama
Copy link
Author

@nhusher notes:

Each pipe is a "step" in the process, here are the steps described:

  1. Gets all the branches merged to develop (if you don't have a develop branch, use master instead).
  2. Get all the branches in the feature branch namespace (if you aren't using feature branches, remove this part).
  3. Rip out tabs and spaces to get a clean branch name.
  4. Run git log on each entry, returning the last commit and the author.
  5. Sort by name
  6. Write out the result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment