BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
e712583a
Commit
e712583a
authored
Oct 29, 2014
by
Patricio Cano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved rake documentation for importing existing repositories with a rake task.
parent
ed9350dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
7 deletions
+44
-7
import.md
doc/raketasks/import.md
+44
-7
No files found.
doc/raketasks/import.md
View file @
e712583a
...
...
@@ -11,18 +11,55 @@ Notes:
How to use:
1.
copy your bare repos under git repos_path (see
`config/gitlab.yml`
gitlab_shell -> repos_path)
1.
run the command below
1.
Create a new folder inside the git repositories path.
-
For omnibus-gitlab it is located at:
`/var/opt/gitlab/git-data/repositories`
-
For manual installations it is usually located at:
`/home/git/repositories`
or you can see where
your repositories are located by looking at
`config/gitlab.yml`
:
```
# 3. Advanced settings
# ==========================
# GitLab Satellites
# satellites:
# Relative paths are relative to Rails.root (default: tmp/repo_satellites/)
# path: /home/git/gitlab-satellites/
# timeout: 30
satellites:
path: /home/git/gitlab-satellites/
gitlab_shell:
path: /home/git/gitlab-shell/
repos_path: /home/git/repositories/
hooks_path: /home/git/gitlab-shell/hooks/
upload_pack: true
receive_pack: true
```
2.
Copy your bare repositories inside this newly created folder, e.g.:
```
# omnibus-gitlab
sudo gitlab-rake gitlab:import:repos
$ cp /old/git/foo.git /home/git/repositories/new_group/foo.git
```
3.
Run the command below depending on you type of installation:
#### Omnibus Installation
```
$ sudo gitlab-rake gitlab:import:repos
```
# installation from source or cookbook
bundle exec rake gitlab:import:repos RAILS_ENV=production
#### Manual Installation
```
$ cd /home/git/gitlab
$ sudo -u git -H bundle exec rake gitlab:import:repos RAILS_ENV=production
```
Example output:
####
Example output:
```
Processing abcd.git
...
...
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