Skip to content

Commit

Permalink
git detect force push
Browse files Browse the repository at this point in the history
  • Loading branch information
nimalan-m committed Jun 7, 2024
1 parent e929cc3 commit 60bf4af
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ This repo is a collection of tidbits of things I learn

See the site live [here](https://mark1626.github.io/knowledge/)

This repo currently contains #445 articles
This repo currently contains #446 articles
19 changes: 19 additions & 0 deletions git/git-force-push-detection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Detecting force pushes

Reflog events

```
git reflog
```

Reflog of specific branch

```
git reflog origin/main
```

Checking for dangling objects

```
git fsck --full
```
3 changes: 2 additions & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
---
- ## Contents

There are #445 articles
There are #446 articles

---
- ## Categories
Expand Down Expand Up @@ -104,6 +104,7 @@
- [Git bisect](./git/git-bisect.md)
- [Git tag types](./git/git-tag.md)
- [Git submodule Update](./git/submodule-update.md)
- [Git force update detection](./git/git-force-push-detection.md)

---
- ### GNU
Expand Down

0 comments on commit 60bf4af

Please sign in to comment.