Delete a local and a remote GIT branch Delete a Local GIT branch. To delete the local GIT branch we can try one of the following commands: git branch -d branch_name. ... Delete a remote GIT branch. To delete a remote branch you can use the following command: git push <remote_name> --delete <branch_name> ... Push to remote branch and delete
- git branch -d branch_name
- git branch -D branch_name
- REF https://makandracards.com/makandra/621-git-delete-a-branch-local-or-remote
- REF https://github.com/Kunena/Kunena-Forum/wiki/Create-a-new-branch-with-git-and-manage-branches
- $ git checkout -b [name_of_your_new_branch]
- $ git push --set-upstream origin [name_of_your_new_branch]
- $ git checkout
- $ git log