You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2021-07-20-remove-sensitive-github-commit.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,6 @@ subtitle: Protect your secrets and clean up if you accidentally over share
10
10
We accidentally committed our secrets (password or secret key) to GitHub
11
11
12
12
## Solution
13
-
1. Prevent secrets from being committed: https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository#avoiding-accidental-commits-in-the-future
1. Prevent secrets from being committed: [avoid accidental commits](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository#avoiding-accidental-commits-in-the-future)
14
+
2. Clean up: Either use [BFG](https://stuarteggerton.com/2021-07-20-remove-sensitive-github-commit/) or see other methods to [remove sensitive data using](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository)
0 commit comments