1)Create local branch [If it not exist]
For example : git branch <Branch_Name> <Existing_Branch>
So a new branch with Branch_Name is created. You can verify with git branch command.
2)git push origin <Branch_Name>
Push your branch, which you have created
3)Other users can track new branch[Branch_Name]
using : git fetch
4)Add config for that branch
For Ex :
cd Folder
cd .git
vim config
and add this to config file :
[branch "branch-name"]
remote = origin
merge = refs/heads/branch-name
No comments:
Post a Comment