26 lines
501 B
Text
Executable file
26 lines
501 B
Text
Executable file
pull() {
|
|
if [ $# -eq 2 ]; then
|
|
git pull --rebase -q $2 `git rev-parse --abbrev-ref HEAD`
|
|
else
|
|
git pull --rebase -q origin `git rev-parse --abbrev-ref HEAD`
|
|
fi
|
|
}
|
|
|
|
push() {
|
|
if [ $# -eq 2 ]; then
|
|
git push -q $2 `git rev-parse --abbrev-ref HEAD`
|
|
else
|
|
git push -q origin `git rev-parse --abbrev-ref HEAD`
|
|
fi
|
|
}
|
|
|
|
send() {
|
|
git add "$(git rev-parse --show-toplevel)"
|
|
if [ $# -eq 1 ]; then
|
|
git commit -a -m "$1"
|
|
else
|
|
git commit -a -m "Updated Stuff"
|
|
fi
|
|
pull
|
|
push
|
|
}
|