Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to create a branch from a remote master in SourceTree?

I have a git master in my SourceTree, and I want to create a branch on another computer. How I can do this? (Master = Remote, in the same network)

like image 519
Despotars Avatar asked Oct 22 '25 16:10

Despotars


1 Answers

Create the branch locally

git checkout -b branch_name

And then push to remote

git push -u remote-name branch-name

Then in the remote

 git pull branch-name

And it will automatically be created locally.

like image 137
griffon vulture Avatar answered Oct 24 '25 11:10

griffon vulture