Document features and changes for phase 2.5 of master/main transition (#15745)
This commit is contained in:
@@ -9,8 +9,8 @@ versions:
|
||||
The error you receive may look like the following:
|
||||
|
||||
```shell
|
||||
$ git push -u github.master
|
||||
> fatal: 'github.master' does not appear to be a git repository
|
||||
$ git push -u github.main
|
||||
> fatal: 'github.main' does not appear to be a git repository
|
||||
> fatal: The remote end hung up unexpectedly
|
||||
|
||||
$ git pull -u github
|
||||
|
||||
@@ -74,7 +74,7 @@ To illustrate how `git filter-branch` works, we'll show you how to remove your f
|
||||
"git rm --cached --ignore-unmatch <em>PATH-TO-YOUR-FILE-WITH-SENSITIVE-DATA</em>" \
|
||||
--prune-empty --tag-name-filter cat -- --all
|
||||
> Rewrite 48dc599c80e20527ed902928085e7861e6b3cbe6 (266/266)
|
||||
> Ref 'refs/heads/master' was rewritten
|
||||
> Ref 'refs/heads/main' was rewritten
|
||||
```
|
||||
|
||||
{% note %}
|
||||
@@ -89,7 +89,7 @@ To illustrate how `git filter-branch` works, we'll show you how to remove your f
|
||||
$ echo "<em>YOUR-FILE-WITH-SENSITIVE-DATA</em>" >> .gitignore
|
||||
$ git add .gitignore
|
||||
$ git commit -m "Add <em>YOUR-FILE-WITH-SENSITIVE-DATA</em> to .gitignore"
|
||||
> [master 051452f] Add <em>YOUR-FILE-WITH-SENSITIVE-DATA</em> to .gitignore
|
||||
> [main 051452f] Add <em>YOUR-FILE-WITH-SENSITIVE-DATA</em> to .gitignore
|
||||
> 1 files changed, 1 insertions(+), 0 deletions(-)
|
||||
```
|
||||
5. Double-check that you've removed everything you wanted to from your repository's history, and that all of your branches are checked out.
|
||||
@@ -102,7 +102,7 @@ To illustrate how `git filter-branch` works, we'll show you how to remove your f
|
||||
> Writing objects: 100% (1058/1058), 148.85 KiB, done.
|
||||
> Total 1058 (delta 590), reused 602 (delta 378)
|
||||
> To https://{% data variables.command_line.codeblock %}/<em>YOUR-USERNAME</em>/<em>YOUR-REPOSITORY</em>.git
|
||||
> + 48dc599...051452f master -> master (forced update)
|
||||
> + 48dc599...051452f main -> main (forced update)
|
||||
```
|
||||
7. In order to remove the sensitive file from [your tagged releases](/articles/about-releases), you'll also need to force-push against your Git tags:
|
||||
```shell
|
||||
@@ -113,7 +113,7 @@ To illustrate how `git filter-branch` works, we'll show you how to remove your f
|
||||
> Writing objects: 100% (321/321), 331.74 KiB | 0 bytes/s, done.
|
||||
> Total 321 (delta 124), reused 269 (delta 108)
|
||||
> To https://{% data variables.command_line.codeblock %}/<em>YOUR-USERNAME</em>/<em>YOUR-REPOSITORY</em>.git
|
||||
> + 48dc599...051452f master -> master (forced update)
|
||||
> + 48dc599...051452f main -> main (forced update)
|
||||
```
|
||||
8. Contact {% data variables.contact.contact_support %}, asking them to remove cached views and references to the sensitive data in pull requests on {% data variables.product.product_name %}.
|
||||
9. Tell your collaborators to [rebase](https://git-scm.com/book/en/Git-Branching-Rebasing), *not* merge, any branches they created off of your old (tainted) repository history. One merge commit could reintroduce some or all of the tainted history that you just went to the trouble of purging.
|
||||
|
||||
Reference in New Issue
Block a user