From 7571818ae6cc09c9a0d22cf5e66d49da98eaeb0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sass=20B=C3=A1lint?= Date: Tue, 10 Nov 2020 15:51:08 +0100 Subject: [PATCH 1/2] [add] force push --- .../removing-sensitive-data-from-a-repository.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/github/authenticating-to-github/removing-sensitive-data-from-a-repository.md b/content/github/authenticating-to-github/removing-sensitive-data-from-a-repository.md index 96185410bb..42d7ef1a00 100644 --- a/content/github/authenticating-to-github/removing-sensitive-data-from-a-repository.md +++ b/content/github/authenticating-to-github/removing-sensitive-data-from-a-repository.md @@ -40,6 +40,12 @@ To replace all text listed in `passwords.txt` wherever it can be found in your r $ bfg --replace-text passwords.txt ``` +At the end, force push the changes: + +```shell +$ git push --force +``` + See the [BFG Repo-Cleaner](http://rtyley.github.io/bfg-repo-cleaner/)'s documentation for full usage and download instructions. #### Using filter-branch From aaca067a3b9d50fcfeeca83aa1092ca90949bf81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sass=20B=C3=A1lint?= Date: Thu, 10 Dec 2020 18:03:39 +0100 Subject: [PATCH 2/2] Update content/github/authenticating-to-github/removing-sensitive-data-from-a-repository.md Co-authored-by: Laura Coursen --- .../removing-sensitive-data-from-a-repository.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/github/authenticating-to-github/removing-sensitive-data-from-a-repository.md b/content/github/authenticating-to-github/removing-sensitive-data-from-a-repository.md index 42d7ef1a00..1c2be329e8 100644 --- a/content/github/authenticating-to-github/removing-sensitive-data-from-a-repository.md +++ b/content/github/authenticating-to-github/removing-sensitive-data-from-a-repository.md @@ -40,7 +40,7 @@ To replace all text listed in `passwords.txt` wherever it can be found in your r $ bfg --replace-text passwords.txt ``` -At the end, force push the changes: +After the sensitive data is removed, you must force push your changes to {% data variables.product.product_name %}. ```shell $ git push --force