Difference between revisions of "GitLab"

From Cncz
Jump to: navigation, search
m
Line 18: Line 18:
  
 
== Migrating from Subversion ==
 
== Migrating from Subversion ==
Inspired by [https://gist.github.com/leftclickben/322b7a3042cbe97ed2af| this short manual], the svn to git conversion could boil down to something like:
+
Inspired by [https://gist.github.com/leftclickben/322b7a3042cbe97ed2af| this short manual], an SVN to git conversion could boil down to something like:
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">

Revision as of 23:58, 28 January 2015

About GitLab

Gitlab.png


Logging in

Navigate to:

http://gitlab.science.ru.nl

You'll see two login options:

  • Science login - for students and employees of the Science Faculty. Use your Science login.
  • Standard - for external users.

Documentation

GitLab documentation

Migrating from Subversion

Inspired by this short manual, an SVN to git conversion could boil down to something like:

cd /tmp/
git svn clone --stdlayout --no-metadata -A users.txt https://svn.science.ru.nl/repos/myproject
cd myproject
git remote add gitlab :scienceloginname/myproject.git
git push --set-upstream gitlab master

Git URLs (https and ssh) are shown on the top of the project page in gitlab. The generic repository URL for the science SVN server is:

https://svn.science.ru.nl/repos/{repository}

You can also see this for public svn repositories on https://svn.science.ru.nl (viewing private repositories requires authentication).