blob: 5eaafbb498ad1aabf328e5bcbc9eb0927ac17798 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# combine fetch and rebase (git frebase)
function wgfreebase {
if [ -z $1 ]; then
branchname="$(git symbolic-ref HEAD 2> /dev/null | cut -f3 -d'/')"
else
branchname="$1"
fi
git fetch origin "$branchname" && git rebase origin/"$branchname"
}
# push to current branch
function wgpush {
if [ -z $1 ]; then
branchname="$(git symbolic-ref HEAD 2> /dev/null | cut -f3 -d'/')"
else
branchname="$1"
fi
git push origin $branchname
}
|