Skip to content

Instantly share code, notes, and snippets.

Sai Bodanki saitej25

Block or report user

Report or block saitej25

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
saitej25 / GitDeleteCommands.ps1
Created Nov 25, 2018 — forked from cmatskas/GitDeleteCommands.ps1
Git Delete Branch commands
View GitDeleteCommands.ps1
## Delete a remote branch
$ git push origin --delete <branch> # Git version 1.7.0 or newer
$ git push origin :<branch> # Git versions older than 1.7.0
## Delete a local branch
$ git branch --delete <branch>
$ git branch -d <branch> # Shorter version
$ git branch -D <branch> # Force delete un-merged branches
## Delete a local remote-tracking branch
You can’t perform that action at this time.