When working with branches, and you are in a big team, you end up having a lot of them and you don't know which are still necessary or not.
If you want to do a cleanup, you need to know who created the branches so you can ask them if they can be deleted:
Here is a commad that lists remote git branches by author sorted by committer date:
git for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)' | sort -k5n -k2M -k3n -k4n
Source: https://stackoverflow.com/questions/12055198/find-out-git-branch-creator/19135644
No comments:
Post a Comment