daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top