π
π
π
π
Git-Help
Git Cheatsheet
Searchβ¦
A Simple Git Help
Basics
Git Branching
Pull Request
Submodules
Commands / Actions
Commit changes to other branch
git log
git status
git init
Amend a commit
Reset a file or full
Undo git add
Get remote repo url
Add or Set Remote URL
delete branch
Credits & Other
Other good links
Credits
Powered By
GitBook
delete branch
To delete a local branch
1
# To delete local branch (which is not there in server)
2
β
3
$ git branch -d <branchname>
Copied!
To delete a remote branch
1
# To Delete Remote branch
2
β
3
$ git push -d <remote_name> <branchname>
4
$ git push -d origin <branchname>
Copied!
β
https://stackoverflow.com/questions/2003505/how-do-i-delete-a-git-branch-locally-and-remotely
β
Commands / Actions - Previous
Add or Set Remote URL
Next - Credits & Other
Other good links
Last modified
6d ago
Copy link