How to create a branch in GIT
- Clone the current git repository: git clone git@github.com:amal/test.git
- Go to the cloned directory: cd test
- git checkout -b test_branch master (Switched to a new branch test_branch")
- To check if the branch exist issue the command git branch you could get an out put like * test_branch master
- git push origin test_branch (Now you can see the new branch in your git hub)
Comments
Post a Comment