Skip to content

Commit bebd9c4

Browse files
authored
repo sync
2 parents c5e0484 + 87be0ae commit bebd9c4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

content/github/managing-large-files/removing-files-from-a-repositorys-history.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ versions:
1616

1717
{% endwarning %}
1818

19-
### Removing a file that was added in an earlier commit
20-
21-
If you added a file in an earlier commit, you need to remove it from the repository's history. To remove files from the repository's history, you can use the BFG Repo-Cleaner or the `git filter-branch` command. For more information see "[Removing sensitive data from a repository](/github/authenticating-to-github/removing-sensitive-data-from-a-repository)."
22-
2319
### Removing a file added in the most recent unpushed commit
2420

2521
If the file was added with your most recent commit, and you have not pushed to {% data variables.product.product_location %}, you can delete the file and amend the commit:
@@ -43,3 +39,7 @@ If the file was added with your most recent commit, and you have not pushed to {
4339
$ git push
4440
# Push our rewritten, smaller commit
4541
```
42+
43+
### Removing a file that was added in an earlier commit
44+
45+
If you added a file in an earlier commit, you need to remove it from the repository's history. To remove files from the repository's history, you can use the BFG Repo-Cleaner or the `git filter-branch` command. For more information see "[Removing sensitive data from a repository](/github/authenticating-to-github/removing-sensitive-data-from-a-repository)."

0 commit comments

Comments
 (0)