-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbabun.sh
More file actions
executable file
·55 lines (44 loc) · 1.02 KB
/
Copy pathbabun.sh
File metadata and controls
executable file
·55 lines (44 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#! /bin/bash
. ~/jab/src/bash/hub.sh
restarts () {
server=$1
for name in uwsgi nginx redis mysqld; do
ssh -q -t $server "sudo service $name restart";
done
}
#######
gfb () {
local _branch=$1
local _merge_master=1
[[ $_branch == master ]] && _merge_master=0
if [[ -n $_branch ]]; then
[[ -n $2 ]] && _merge_master=$2
fi
git merge --abort >/dev/null 2>&1
git co ${_branch} | grep -v Switched
[[ $_merge_master == 1 ]] && git merge master
git branch -D fred
}
gfd () {
gfb deployed_to_twkwbe95
}
gfm () {
# viz gmf
gfb master
}
gmf () {
# viz gfm
[[ -n $1 ]] && git co $1
git co -b fred
git merge master
}
go () {
for branch in $(git branch -a | grep -v -e remotes -e master -e fred -e deploy -e 23430_call_certifications | sed -e "s/^./ /"); do
echo ================================
echo $branch
git co $branch || break
git status -s || break
git co dashboard
git pull --rebase
done
}