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
76f6f92b
Commit
76f6f92b
authored
Sep 15, 2021
by
Katrin Leinweber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: Clarify usage of temporary branch
parent
74729c56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
doc/user/project/settings/import_export.md
doc/user/project/settings/import_export.md
+5
-3
No files found.
doc/user/project/settings/import_export.md
View file @
76f6f92b
...
@@ -240,9 +240,11 @@ reduce the repository size for another import attempt.
...
@@ -240,9 +240,11 @@ reduce the repository size for another import attempt.
# Prevent interference with recreating an importable file later
# Prevent interference with recreating an importable file later
mv project.bundle ../"$EXPORT"-original.bundle
mv project.bundle ../"$EXPORT"-original.bundle
mv ../"$EXPORT".tar.gz ../"$EXPORT"-original.tar.gz
mv ../"$EXPORT".tar.gz ../"$EXPORT"-original.tar.gz
git switch --create smaller-tmp-main
```
```
1.
To reduce the repository size,
1.
To reduce the repository size,
work on this
`smaller-tmp-main`
branch:
[
identify and remove large files
](
../repository/reducing_the_repo_size_using_git.md
)
[
identify and remove large files
](
../repository/reducing_the_repo_size_using_git.md
)
or
[
interactively rebase and fixup
](
../../../topics/git/git_rebase.md#interactive-rebase
)
or
[
interactively rebase and fixup
](
../../../topics/git/git_rebase.md#interactive-rebase
)
to reduce the number of commits.
to reduce the number of commits.
...
@@ -254,7 +256,7 @@ reduce the repository size for another import attempt.
...
@@ -254,7 +256,7 @@ reduce the repository size for another import attempt.
git gc --prune=now --aggressive
git gc --prune=now --aggressive
# Prepare recreating an importable file
# Prepare recreating an importable file
git bundle create ../project.bundle
<default-branch-name>
git bundle create ../project.bundle
smaller-tmp-main
cd ..
cd ..
mv project/ ../"$EXPORT"-project
mv project/ ../"$EXPORT"-project
cd ..
cd ..
...
@@ -270,5 +272,5 @@ reduce the repository size for another import attempt.
...
@@ -270,5 +272,5 @@ reduce the repository size for another import attempt.
1.
Update the imported repository's
1.
Update the imported repository's
[
branch protection rules
](
../protected_branches.md
)
and
[
branch protection rules
](
../protected_branches.md
)
and
its
[
default branch
](
../repository/branches/default.md
)
, and
its
[
default branch
](
../repository/branches/default.md
)
, and
delete the temporary,
`smaller-
…
`
branch, and
delete the temporary,
`smaller-
tmp-main
`
branch, and
the local, temporary data.
the local, temporary data.
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