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
8df52155
Commit
8df52155
authored
Aug 31, 2020
by
Katrin Leinweber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify effect of subfolders on import
parent
7734aed0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
doc/raketasks/import.md
doc/raketasks/import.md
+6
-3
No files found.
doc/raketasks/import.md
View file @
8df52155
...
...
@@ -17,11 +17,14 @@ Note that:
To import bare repositories into a GitLab instance:
1.
Create a new folder to import your Git repositories from. The new folder needs to have Git user
1.
Create a new folder to import your Git repositories from.
If the final projects should reside in a (sub)group's namespace,
instead of the admin's, create them as subfolders.
The new folder(s) needs to have Git user
ownership and read/write/execute access for Git user and its group:
```
shell
sudo
-u
git
mkdir
-p
/var/opt/gitlab/git-data/repository-import-<
date
>
/
new_group
sudo
-u
git
mkdir
-p
/var/opt/gitlab/git-data/repository-import-<
date
>
/
<optional_groupname>/<optional_subgroup>
```
1.
Copy your bare repositories inside this newly created folder. Note:
...
...
@@ -34,7 +37,7 @@ To import bare repositories into a GitLab instance:
`/var/opt/gitlab/git-data/repository-import-<date>/G1/G2/A.git`
.
```
shell
sudo cp
-r
/old/git/foo.git /var/opt/gitlab/git-data/repository-import-<
date
>
/
new_group/
sudo cp
-r
/old/git/foo.git /var/opt/gitlab/git-data/repository-import-<
date
>
/
<optional_groupname>/<optional_subgroup>
# Do this once when you are done copying git repositories
sudo chown
-R
git:git /var/opt/gitlab/git-data/repository-import-<
date
>
...
...
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