summaryrefslogtreecommitdiff
path: root/.local/bin/development/gitpush
blob: 2c503cab2032d9f31d39bbc093f1e3054cc42c52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

push_to_remote() {
	git add --all
	git commit && git push -u origin
}

[ -z "$1" ] && { push_to_remote; exit; }

for dir in "$@"; do
	cd "$dir" || exit
	push_to_remote
done