Added gitall
This commit is contained in:
parent
b42a32e6e8
commit
d9f5bd995e
1 changed files with 17 additions and 0 deletions
|
@ -7,3 +7,20 @@ mkpasswd2() {
|
||||||
LEN=${1:-30}
|
LEN=${1:-30}
|
||||||
base64 < /dev/urandom | fold -w $LEN | sed 1q
|
base64 < /dev/urandom | fold -w $LEN | sed 1q
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gitall() {
|
||||||
|
ROOT=$(pwd)
|
||||||
|
find . -name '.git' | while read repo; do
|
||||||
|
repodir=$(dirname "$repo")
|
||||||
|
reponame=$(basename "$repodir")
|
||||||
|
cd "$repodir"
|
||||||
|
|
||||||
|
echo "==================================="
|
||||||
|
echo "===> $reponame"
|
||||||
|
echo "==================================="
|
||||||
|
|
||||||
|
git $@
|
||||||
|
|
||||||
|
cd "$ROOT";
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue