Added SSHconnect and bin

This commit is contained in:
Nikolas Weger 2015-07-25 12:49:41 +02:00
parent be078ac68c
commit 067555dd63
3 changed files with 57 additions and 0 deletions

26
bin/send Executable file
View file

@ -0,0 +1,26 @@
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
}