Difference between revisions of "Gitlab Social Sciences"

From TSG Doc
Jump to navigation Jump to search
m (small fixes)
(Clarified external users)
Line 61: Line 61:
  
 
==External Users==
 
==External Users==
If you want to allow people without Radboud University account to access and contribute to your Gitlab project, you can request a standard user account by sending an email to
+
If you want to allow people without Radboud University account to access and contribute to your GitLab project, you can request a standard user account by sending an email to
[mailto:j.keyser@donders.ru.nl Johannes Keyser (DCC)] or [mailto:e.lieffers@ru.nl Eric Lieffers (ISC)]. <br/>Be sure to include the following information:
+
[mailto:gitlab@socsci.ru.nl gitlab@socsci.ru.nl].
{| class="wikitable"
+
Please provide the full name of the user, a requested username, and a valid email address, preferably from the university the person is working in.
| Username
+
 
|-
+
Note that with an external account, the user has to switch to the "Standard" tab on the Sign-In page.
| Email adres
+
From GitLab's point of view, all accounts have the same rights and restrictions.
|-
+
Once logged in, there are no further differences.
| Full Name
 
|-
 
|}
 
  
 
==Configuration==
 
==Configuration==
  
The following instructions are for the command line interface. If you are using a graphical user interface (e.g. a desktop client), please consult its documentation for further instructions.
+
The following instructions are for the command line interface.
 +
If you are using a graphical user interface (e.g. a desktop client), please consult its documentation for further instructions.
  
 
===Global Setup===
 
===Global Setup===

Revision as of 12:29, 1 June 2017

Gitlab Social Sciences
Wm no bg.svg
Development statusActive
Operating systemany
PlatformMicrosoft Windows, MacOSX, Linux
LicenseMIT License
Websitegitlab.socsci.ru.nl
Downloads
Manuals

The Social Sciences GitLab server offers Git repository management, code reviews, issue tracking, activity feeds and wikis.


Features

With GitLab you can easily manage your projects, synchronize your code between computers, or create wiki-pages for documentation. Whether you write code or a paper, you can review, deploy, or document your project together with others. You can create at least 50 projects, and you can make them private, or share them with your lab members, or even the entire Internet.

Think of GitLab as a "Facebook" around your projects. Similar services include e.g. GitHub.com or GitLab.com (which also runs the GitLab software on their servers). In contrast to these services, GitLab Social Sciences is self-hosted on a server on the Radboud campus. That means we determine our own terms of use; for example, here you can private projects for free - on GitHub, you would have to pay.

Note that there's another self-hosted GitLab service running at the Faculty of Science. Anyone who has a "science login" can also use this service; it's running the same software (just the login page looks different).

Requirements

1. A GitLab account to log in at https://gitlab.socsci.ru.nl:

  • Everyone from Radboud University can login (with their U-, S-, E- or F-number).
  • External users can ask for an account and then login with their username (switch to the "Standard" tab in the Sign-In page).

2. For more than the most basic tasks, you'll also need to install Git on your computer.

External Users

If you want to allow people without Radboud University account to access and contribute to your GitLab project, you can request a standard user account by sending an email to gitlab@socsci.ru.nl. Please provide the full name of the user, a requested username, and a valid email address, preferably from the university the person is working in.

Note that with an external account, the user has to switch to the "Standard" tab on the Sign-In page. From GitLab's point of view, all accounts have the same rights and restrictions. Once logged in, there are no further differences.

Configuration

The following instructions are for the command line interface. If you are using a graphical user interface (e.g. a desktop client), please consult its documentation for further instructions.

Global Setup

$ git config --global user.name "your-username-here"
$ git config --global user.email "your-email-address-here"

Your username will be visible when pushing a commit to the Gitlab server. Your email address should be the same as your primary Radboud email address, or if you are an external user, the one provided in your user request.

Usage

The following instructions are for the command line interface. If you are using a graphical user interface (e.g. a desktop client), please consult its documentation for further instructions. When creating a new project in the web interface, you will also be given these instructions.

Creating a new repository

$ mkdir newproject
$ cd newproject
$ git init
$ touch README.md
$ git add README.md
$ git commit -m "initial commit"
$ git remote add origin git@gitlab.socsci.ru.nl:username/newproject.git
$ git push -u origin master

Substitute 'newproject' with your project name and 'username' with your username.

Push an existing Git repository

$ cd existing-git-repo
$ git remote add origin git@gitlab.socsci.ru.nl:username/newproject.git
$ git push -u origin master

Substitute 'newproject' with your project name.

Troubleshoot

Some users will see the following message when they want to make a remote connection with SSH. (existing repository) When you see the below message you will need to say yes.

$ Warning: the ECDSA host key for 'gitlab.socsci.ru.nl' differs from the key for the IP address 'x.x.x.x'
$ Offending key for IP in /home/user/.ssh/known_hosts:23 Matching host key in /home/user/.ssh/known_hosts:13 
$ Are you sure you want to continue connecting (yes/no)? yes

Remote SSH connection should now be established.

For other technical issues you can contact Eric Lieffers (Server Administrator)

Git Clients

You can find the git clients for various operating systems here. Additionally, you may be able to find a Git plugin for your code editor of choice.


External Links