Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. git_remote_branches() {
  2. # удалит локальные remote-tracking бранчи, которых больше нет на remote!
  3. git fetch --all --prune
  4. lines=$(git for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)' refs/remotes | grep 'QIS')
  5.  
  6. echo -e '\n'
  7. echo -e 'Top authors:\n'
  8. echo "$lines" | awk -F $'\t' '{print $2}' | sort | uniq -c | sort -nr
  9.  
  10. echo -e '\n'
  11. echo -e 'Branches:\n'
  12. echo "$lines" | column -t -s $'\t'
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement