branch

Rename a git branch

In git, branching is cheap and easy. You do it all the time (you’re not? Well, you should). Sometimes, though, you create a new feature branch, only to come to the conclusion later that the name you gave it does not cover the stuff you’ve been doing. No problem for git! Renaming a branch is really easy: git branch -m old_branch new_branch That’s all.

Best Practice - The Git Development Cycle

Git is quite an awesome version control system. Why? Because it’s lightning fast, even for large projects (among other reasons). But, how do you use Git effectively for development on a daily basis? Let me explain to you. Branches With git you normally have a ‘master’ branch. This is also the branch you use to sync your code with other repositories. That is also the reason why you should never code in the ‘master’ branch.