Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/u591492611/domains/codeone.in/public_html/application/third_party/google-login-api/service/apiUtils.php on line 58
GIT Branches
No icon

GIT Branches

GIT Branches

Create a new branch and switch to it:    


git checkout -b


Switch from one branch to another:    


git checkout


List all the branches in your repo, and also tell you what branch you're currently in:  

 
git branch


Delete the feature branch:    


git branch -d


Push the branch to your remote repository, so others can use it:    


git push origin


Push all branches to your remote repository:    


git push --all origin


Delete a branch on your remote repository:    


git push origin :

Comment As:

Comment (3)

  • Rupesh
    2021-05-30 12:30:18
    Good information. keep it up
    • Mohammad
      2021-05-30 12:32:41
      Thank You
  • Rupesh
    2021-05-30 12:30:48
    Good information