GIT Branches
GIT Branches
- By Mohammad --
- Sunday, 30 May, 2021
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 :