A place to breathe

Saturday, October 1, 2016

How to point your git branch to remote

Often times, you want to point your Git your HEAD to the remote branch other than master. So all you need to do is to do this:

%> git checkout -b my_local_branch remote/origin/my_remote_branch 

And you are now pointing to the local branch pointing to your remote branch !

(Of course, I assume you know what Git is).

No comments:

About Me

I'm currently a software engineer. My specific interest is games and networking. I'm running software company called Nusantara Software.