How to create a branch in GIT

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

Comments

Popular posts from this blog

How to SSH to remote server without entering password each time.

How to redirect a URL in NGINX

Ruby on Rails Installation on Windows 7