I have been trying to figure this one out but I am having a hard time doing so. I am currently working on an open source project that requires me to allow a user to
Checkout and track the branch from the remote:
git checkout -t origin/funbranch
Branch off of it:
git checkout -b mybranch
Push your new one up, it will create a new branch automatically on the remote:
git push origin mybranch
It should say "created new remote branch origin/mybranch"
If you are still getting "Remote end Hung up", it sounds like a security thing. Do you have SSH keys installed correctly, and do you have write permissions on the remote server?
The way most open source projects work, you have to create a fork (a clone inherently) that you use to do your work because most of the time you don't have write permissions to the repo. When you have changes, you will then send a pull request to the repository owner, and he/she will pull from your fork the changes that they want.