Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
052749ef
Commit
052749ef
authored
Sep 30, 2019
by
Lyle Kozloff
Committed by
Evan Read
Sep 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
documentation update - note that BFG is an open source community project
parent
257289f3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
doc/topics/git/migrate_to_git_lfs/index.md
doc/topics/git/migrate_to_git_lfs/index.md
+1
-1
doc/topics/git/numerous_undo_possibilities_in_git/index.md
doc/topics/git/numerous_undo_possibilities_in_git/index.md
+3
-3
doc/user/project/repository/reducing_the_repo_size_using_git.md
...er/project/repository/reducing_the_repo_size_using_git.md
+6
-4
No files found.
doc/topics/git/migrate_to_git_lfs/index.md
View file @
052749ef
...
...
@@ -15,7 +15,7 @@ will not actually reduce the size of your repository because
the files are still referenced by previous commits.
Through the method described on this document, first migrate
to Git LFS with
[
BFG
](
https://rtyley.github.io/bfg-repo-cleaner/
)
to Git LFS with
a tool such as the open source community-maintained
[
BFG
](
https://rtyley.github.io/bfg-repo-cleaner/
)
through a mirror repo, then clean up the repository's history,
and lastly create LFS tracking rules to prevent new binary files
from being added.
...
...
doc/topics/git/numerous_undo_possibilities_in_git/index.md
View file @
052749ef
...
...
@@ -487,9 +487,9 @@ git filter-branch --tree-filter 'rm filename' HEAD
Since
`git filter-branch`
command might be slow on big repositories, there are
tools that can use some of Git specifics to enable faster execution of common
tasks (which is exactly what removing sensitive information file is about).
An alternative is
[
BFG Repo-cleaner
][
bfg-repo-cleaner
]
. Keep in mind that these
tools are faster because they do not provide a same fully feature set as
`git filter-branch`
does, but focus on specific use cases.
An alternative is
the open source community-maintained tool
[
BFG
][
bfg-repo-cleaner
]
.
Keep in mind that these tools are faster because they do not provide the same
feature set as
`git filter-branch`
does, but focus on specific use cases.
## Conclusion
...
...
doc/user/project/repository/reducing_the_repo_size_using_git.md
View file @
052749ef
...
...
@@ -19,7 +19,8 @@ Unfortunately, it's not so easy and that workflow won't work. Deleting files in
a commit doesn't actually reduce the size of the repo since the earlier commits
and blobs are still around. What you need to do is rewrite history with Git's
[
`filter-branch` option
](
https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History#The-Nuclear-Option:-filter-branch
)
,
or a tool like the
[
BFG Repo-Cleaner
](
https://rtyley.github.io/bfg-repo-cleaner/
)
.
or an open source community-maintained tool like the
[
BFG
](
https://rtyley.github.io/bfg-repo-cleaner/
)
.
Note that even with that method, until
`git gc`
runs on the GitLab side, the
"removed" commits and blobs will still be around. You also need to be able to
...
...
@@ -34,8 +35,9 @@ temporarily increase it for you, your only option is to prune all the unneeded
stuff locally, and then create a new project on GitLab and start using that
instead.
If you can continue to use the original project, we recommend
[
using the
BFG Repo-Cleaner
](
#using-the-bfg-repo-cleaner
)
. It's faster and simpler than
If you can continue to use the original project, we recommend
[
using
BFG
](
#using-the-bfg-repo-cleaner
)
, a tool that's built and
maintained by the open source community. It's faster and simpler than
`git filter-branch`
, and GitLab can use its account of what has changed to clean
up its own internal state, maximizing the space saved.
...
...
@@ -54,7 +56,7 @@ removed from the repository.
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/issues/19376) in GitLab 11.6.
1.
[
Install BFG
](
https://rtyley.github.io/bfg-repo-cleaner/
)
.
1.
[
Install BFG
](
https://rtyley.github.io/bfg-repo-cleaner/
)
from its open source community repository
.
1.
Navigate to your repository:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment