Skip to content

Commit a86286c

Browse files
be clear about recommendation
1 parent 2885c1a commit a86286c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

github/remove-sensitive-data-from-github-repository.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ Regardless of a repository's visibility, it is not enough to delete files contai
1717
{: .warning}
1818
Be careful running the following commands. These are DESTRUCTIVE actions. 🌋
1919

20-
## Using `git-filter-repo` to remove sensitive data from a repository
20+
## Option 1 (Recommended): Use `git-filter-repo`
2121

22-
See this official guide from the [GitHub documentation](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository).
22+
Follow this official guide from the [GitHub documentation](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository).
2323

24-
## Remove all commits up to a certain point
24+
## Option 2: Remove all commits up to a certain point
2525

2626
1. Find the last "good" commit hash by running:
2727

@@ -56,7 +56,7 @@ See this official guide from the [GitHub documentation](https://docs.github.com/
5656
```
5757
5858
59-
## Remove only specific commits
59+
## Option 3: Remove only specific commits
6060
6161
If you have a mix of "good" and "bad" commits, you'll want to interactively rebase. [Read more about rebasing.](https://www.atlassian.com/git/tutorials/rewriting-history/git-rebase)
6262

0 commit comments

Comments
 (0)