Tianhe Gao

git-delete-branch-locally-remotely

https://stackoverflow.com/a/2003515/12539782 ## Local

```bash git branch -d <branchtobedeleted> git branch -D <branchtobedeleted>(force) ```

​## Remote

```bash git push origin –delete <branchtobedeleted>

git push origin :<branchtobedeleted>

​## Next step git fetch –all –prune # remove remote branched still at locally ```


No notes link to this note