Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit ac84a16

Browse files
committed
gitAllRepos: Add a wrapper for git so I can use git commands
Might be useful for other folks
1 parent 15132a9 commit ac84a16

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

gitAllRepos.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash -e
2+
3+
# git wraper for commands to run across all repos. Only usable from the root directory
4+
# Examples:
5+
# $ gitAllRepos.sh status
6+
# $ gitAllRepos.sh grep live
7+
8+
git $1 ${@:2}
9+
cd ./salt/private/
10+
git $1 ${@:2}
11+
cd ../../pillar/private/
12+
git $1 ${@:2}

0 commit comments

Comments
 (0)