Skip to content

Instantly share code, notes, and snippets.

@iMega
Last active April 28, 2020 11:46
Show Gist options
  • Save iMega/fe055627f380e60768a455e6c759e501 to your computer and use it in GitHub Desktop.
Save iMega/fe055627f380e60768a455e6c759e501 to your computer and use it in GitHub Desktop.
Special commands git for manage big repo

To update the local list of remote branches

git remote update origin --prune

Listing branches with their latest author

git for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)'

Find all repos (eg current_dir/group/repo)

find . -mindepth 3  -maxdepth 3 -name '.git' -execdir pwd \; -execdir git for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment