In SVN I have at least two ways to create a branch:
svn cp /home/me/localcheckout/trunk /home/me/localcheckout/branches/newbranch
svn cp http://server/trunk http://server/branches/newbranch
The first creates it locally then I have to commit the whole branch.
The second creates it on the server.
The benefit of the second is that I can svn switch my local trunk, make a few changes to some files and commit just a few KB.
Is it possible to achieve that using Git?
Is there a way of creating a remote branch on GitHub then pull them to my local repo?
The reason that I ask is that I am trying to push a couple of KB to a new remote branch from master using my phones internet connection but when I push it wants to push about 400 MB!
Writing objects: 22% (54080/245586), 86.74 MiB | 13 KiB/s
See Git - pushing a remote branch for a large project is really slow for a similar question.