Here is a trick that saves me a lot of typing and frustration. If you are using git, you are probably using its branches feature. If this is true, you are already aware that you need to specify every time the correct branch with every pull and push:
oscar~/projects/my-project(beta)$ git pull origin beta
oscar~/projects/my-project(beta)$ git push origin betaparse_git_branch_without_parentheses() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'}
gpush() { git push origin $(parse_git_branch_without_parentheses); }gpull() { git pull origin $(parse_git_branch_without_parentheses); }oscar~/projects/my-project(beta)$ gpull
oscar~/projects/my-project(beta)$ gpush