/exgit

One tool to do some git commands on several repositories.

Primary LanguageGo

Now on GitLab: https://gitlab.com/adynemo/exgit

EXGIT v1.0.1

A script to do some git commands on several repositories.


$ exgit --help
 _____  _____ ___ _____
| __\ \/ / __|_ _|_   _|
| _| >  < (_ || |  | |
|___/_/\_\___|___| |_| [Ady]

-v      exgit version
-s      git status
-P      git pull
-c      git-clean
-b      git branch

exgit [option] [path]

Option: please do --help to get the options list.

Path: the path of the directory where there are repositories.


git-clean is an alias for:

git remote prune origin && git branch -vv | grep \"origin/.*: gone]\" | awk \"{print }\" | xargs git branch -D 2>/dev/null

This command checks and removes all deleted branches.