git push all HEAD:<branch>
This is especially useful when you use dropbox as an additional remote. Edit the .git/config in the local repo and add the following
[remote "all"]
url = <git-url-1>
url = <git-url-2>
url = <git-url-3>
git push all HEAD:<branch>
[remote "all"]
url = <git-url-1>
url = <git-url-2>
url = <git-url-3>
mkdir myproject.git
cd myproject.git
git init --bare
cd <where/you/want/your/project>
git clone <path/to/dropbox/..../myproject.git>
cd myproject
[hack.. hack.. hack]
git add <what you want to commit>
git commit [...]
git push
cd <where/you/your/project/is>
git remote add dropbox <path/to/dropbox/..../myproject.git>
git fetch dropbox
[hack.. hack.. hack]
git add <what you want to commit>
git commit [...]
git push dropbox HEAD:master
a-long-process; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'