I often want to make the current branch the master branch, like described in this question. I use the approach that Jefromi answered.
I wonder how I can do exactly this with source tree?
I often want to make the current branch the master branch, like described in this question. I use the approach that Jefromi answered.
I wonder how I can do exactly this with source tree?
When your in the branch you want to copy the master branch to, run this command:
git merge master
you can read about what it does here
Well Jefromi's answer is perfect to keep the content in branch . But, I wonder why we try to make our current branch as master branch at any stage. Best practice says, Well plan your project and never make direct changes in master. Always, Master changes are merged into the branch and then branch is pushed to master.