filmov
tv
How to create and delete branch git

Показать описание
Git commands to create and delete LOCAL branch.
Create:
git checkout -b BRANCH_NAME
Delete:
git branch -d BRANCH_NAME
Git commands to create and delete REMOTE branch.
Create:
git checkout -b BRANCH_NAME
git push --set-upstream origin BRANCH_NAME
Delete:
git branch -D
git push origin --delete BRANCH_NAME
Create:
git checkout -b BRANCH_NAME
Delete:
git branch -d BRANCH_NAME
Git commands to create and delete REMOTE branch.
Create:
git checkout -b BRANCH_NAME
git push --set-upstream origin BRANCH_NAME
Delete:
git branch -D
git push origin --delete BRANCH_NAME