How can I push a local Git branch to a remote with a different name easily?

I’ve been wondering if there’s an easy way to push and pull a local branch with a remote branch with a different name without always specifying both names. For example: $ git clone myrepo.git $ git checkout -b newb $ … $ git commit -m “Some change” $ git push origin newb:remote_branch_name Now if someone … Read more

How can I find the location of origin/master in git, and how do I change it?

I’m a Git newbie. I recently moved a Rails project from Subversion to Git. I followed the tutorial here: http://www.simplisticcomplexity.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/ I am also using unfuddle.com to store my code. I make changes on my Mac laptop on the train to/from work and then push them to unfuddle when I have a network connection using the … Read more