Git: Efficient steps to create a new branch and push to remote
I figured out the steps but seems cumbersome, take
bitbucket for example, suppose i already have a project called
- I branch a new project from server side(bitbucket.com), called
- From local i add add a remote
git remote add prj-bz https://blah...
- At the same time from local i create a new branch called
- From local i call
git push prj-bz prj-bzto let local repo and remote one connected.
I checked out some git books but seem none cover this.
Any more efficient way to do this?