Skip to content
This repository has been archived by the owner on Dec 6, 2020. It is now read-only.

Latest commit

 

History

History
34 lines (24 loc) · 724 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 724 Bytes

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.