Skip to content

Commit

Permalink
upd git.md
Browse files Browse the repository at this point in the history
  • Loading branch information
halyph committed Oct 13, 2023
1 parent d1dee40 commit 47afc28
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/wiki/howtos/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,11 @@ git reset --soft HEAD~1
```shell
git reset --hard HEAD~1
```

## Deleting a remote branch

```shell
git push origin --delete <branch> # Git version 1.7.0 or newer
git push origin -d <branch> # Shorter version (Git 1.7.0 or newer)
git push origin :<branch> # Git versions older than 1.7.0
```

0 comments on commit 47afc28

Please sign in to comment.