Code

How to remove a local Git branch and a distant Git branch ?

git remote

git remote

You may have to delete locally a branch you’ve created and delete a distant branch.
To do so, you just have to remember that locally, you have to git branch something and at distance, you have to git push origin something.

To remove a local branch, you can type
git branch -d mybranch

To remove a distant branch, you can type
git push origin --delete mybranch

Theme by Anders Norén