Skip to content

Commit

Permalink
git-obliterate: add page (#6099)
Browse files Browse the repository at this point in the history
  • Loading branch information
CleanMachine1 authored Jun 11, 2021
1 parent 2aa8062 commit 427911a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pages/common/git-obliterate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# git obliterate

> Delete specific files and erase their history from a Git repository.
> Part of `git-extras`.
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-obliterate>.
- Erase the existence of specific files:

`git obliterate {{file_1 file_2 ...}}`

- Erase the existence of specific files between 2 commits:

`git obliterate {{file_1 file_2 ...}} -- {{commit_hash_1}}..{{commit_hash_2}}`

0 comments on commit 427911a

Please sign in to comment.