Rename git branch

Rename git branch

First checkout to the branch which you want to rename:

To remove an old branch from remote:

Remove origin from branch name

Remove origin from branch name

 

Add .gitignore across all branches

Add .gitignore across all branches