summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authordosire <sytses@gmail.com>2014-04-30 15:02:37 +0200
committerdosire <sytses@gmail.com>2014-04-30 15:02:42 +0200
commit9571743d8f46e583a4edb465b831f495d642bf32 (patch)
treebae4d3cedff9da0d28fc1b5b15cacb4a1a8f2ba0 /doc
parenta64724611fa972dfc06fc72bf1fe80c93a4b80f1 (diff)
downloadgitlab-ce-9571743d8f46e583a4edb465b831f495d642bf32.tar.gz
Import rake task documentation in separate file.
Diffstat (limited to 'doc')
-rw-r--r--doc/raketasks/import.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/raketasks/import.md b/doc/raketasks/import.md
new file mode 100644
index 00000000000..e11328dc5ce
--- /dev/null
+++ b/doc/raketasks/import.md
@@ -0,0 +1,28 @@
+### Import bare repositories into GitLab project instance
+
+Notes:
+
+* project owner will be a first admin
+* groups will be created as needed
+* group owner will be the first admin
+* existing projects will be skipped
+
+How to use:
+
+1. copy your bare repos under git repos_path (see `config/gitlab.yml` gitlab_shell -> repos_path)
+2. run the command below
+
+```
+bundle exec rake gitlab:import:repos RAILS_ENV=production
+```
+
+Example output:
+
+```
+Processing abcd.git
+ * Created abcd (abcd.git)
+Processing group/xyz.git
+ * Created Group group (2)
+ * Created xyz (group/xyz.git)
+[...]
+```