Skip to content

Instantly share code, notes, and snippets.

View janaSunrise's full-sized avatar
Becoming better, every day.

Sunrit Jana janaSunrise

Becoming better, every day.
View GitHub Profile
@cmatskas
cmatskas / GitDeleteCommands.ps1
Last active September 22, 2022 07:59
Git Delete Branch commands
## 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
@Jabarabo
Jabarabo / githubpull.md
Last active July 22, 2024 14:55
Gist of a stolen gist