Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- git_remote_branches() {
- # удалит локальные remote-tracking бранчи, которых больше нет на remote!
- git fetch --all --prune
- lines=$(git for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)' refs/remotes | grep 'QIS')
- echo -e '\n'
- echo -e 'Top authors:\n'
- echo "$lines" | awk -F $'\t' '{print $2}' | sort | uniq -c | sort -nr
- echo -e '\n'
- echo -e 'Branches:\n'
- echo "$lines" | column -t -s $'\t'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement