Difference between revisions of "GitLab"

From Cncz
Jump to: navigation, search
(Nieuwe pagina aangemaakt met '== About GitLab == Bestand:gitlab.png == Logging in == Navigate to: http://gitlab.science.ru.nl You'll see two login options: * Science login - for stude...')
 
m
Line 8: Line 8:
 
Navigate to:
 
Navigate to:
  
http://gitlab.science.ru.nl
+
<code>http://gitlab.science.ru.nl</code>
  
 
You'll see two login options:  
 
You'll see two login options:  
Line 18: Line 18:
  
 
== Migrating from Subversion ==
 
== Migrating from Subversion ==
Inspired by [https://gist.github.com/leftclickben/322b7a3042cbe97ed2af| this short manual], the conversion could boil down to something like:
+
Inspired by [https://gist.github.com/leftclickben/322b7a3042cbe97ed2af| this short manual], the svn to git conversion could boil down to something like:
  
<code>
+
<syntaxhighlight lang="bash">
 
cd /tmp/
 
cd /tmp/
 
 
git svn clone --stdlayout --no-metadata -A users.txt https://svn.science.ru.nl/repos/myproject
 
git svn clone --stdlayout --no-metadata -A users.txt https://svn.science.ru.nl/repos/myproject
 
 
cd myproject
 
cd myproject
 
 
git remote add gitlab git@gitlab.science.ru.nl:scienceloginname/myproject.git
 
git remote add gitlab git@gitlab.science.ru.nl:scienceloginname/myproject.git
 
 
git push --set-upstream gitlab master
 
git push --set-upstream gitlab master
</code>
+
</syntaxhighlight>
  
 
Git URLs (https and ssh) are shown on the top of the project page in gitlab.
 
Git URLs (https and ssh) are shown on the top of the project page in gitlab.

Revision as of 00:55, 29 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, the 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).