Delete locally:
To delete a local branch, you can use:
git branch -d branch_name
To delete a branch forcibly, use -D
instead of -d
.
git branch -D branch_name
git branch -D branch_name
Delete remotely:
There are two options:
git push origin :branchname
git push origin --delete branchname
git push origin :branchname
git push origin --delete branchname
I would suggest you use the 2nd way as it is more intuitive.
Delete locally:
To delete a local branch, you can use:
git branch -d branch_name
To delete a branch forcibly, use -D
instead of -d
.
git branch -D branch_name
Delete remotely:
There are two options:
git push origin :branchname
git push origin --delete branchname
I would suggest you use the 2nd way as it is more intuitive.
Delete locally:
To delete a local branch, you can use:
git branch -d branch_name
To delete a branch forcibly, use -D
instead of -d
.
git branch -D branch_name
Delete remotely:
There are two options:
git push origin :branchname
git push origin --delete branchname
I would suggest you use the 2nd way as it is more intuitive.