Difference between revisions of "GitLab server"

From mi-linux
Jump to navigationJump to search
 
(123 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
[[Main Page]] >> GitLab server
 +
 
== GitLab server ==
 
== GitLab server ==
  
The University provides every student with a fully working Version Control system called GitLab:
+
The University provides every student with a Git Version Control system called GitLab:
 
 
* [https://fsegitlab.wlv.ac.uk/ https://fsegitlab.wlv.ac.uk/]
 
 
 
Please note that you should only use this server to store files related to University coursework. Personal or word related files should not be stored on this server.
 
 
 
== Getting started==
 
 
 
=== Signing in===
 
 
 
You can sign in using your usual university credentials. Make sure that you select the "LDAP" tab on the "Sign in" screen:
 
 
 
https://mi-linux.wlv.ac.uk/wiki-images/gitlab01.png
 
 
 
=== Creating a project ===
 
 
 
Your next step is to create a "Project" that will contain your work. Click on the "+ New Project" button.
 
 
 
https://mi-linux.wlv.ac.uk/wiki-images/gitlab02.png
 
 
 
And populate the following fields:
 
* Project Name
 
* Description
 
* Visibility Level
 
 
 
'''Important''': The Visibility Level should be set to "Private" for all assessment-related work. Any other Visibility Level would allow other students to look at and clone your work, which equates to Collusion under the University's Academic Misconduct regulations.
 
 
 
Set the Project's Visibility level to "Private" and then manually invite new project members, via the Project's settings:
 
 
 
https://mi-linux.wlv.ac.uk/wiki-images/gitlab03.png
 
 
 
=== Creating your first repository ===
 
 
 
When visiting your project's homepage you are presented with some command line Git code that you should use to create your first repository. Please note that you get 2 access options:
 
 
 
* SSH
 
* HTTPS
 
  
We'll look that HTTPS for now, so click the "HTTPS" button near the top.
+
* [https://git-srv.wlv.ac.uk/gitlab https://git-srv.wlv.ac.uk/gitlab]
  
Your project's homepage should contain code similar to this one:
+
Please read through the following tutorials:
 +
# [[Getting started with GitLab]]
 +
# [[Cloning and pulling from GitLab]]
 +
# [[Solving conflicts on GitLab]]
 +
# [[Working environments]]
 +
# [[Working with GitLab Issues, Milestones and Labels]]
  
Git global setup
+
'''Important''': Please note that you should only use this server to store files related to University coursework. Personal or work-related files should not be stored on this server.
<pre>
 
git config --global user.name "in9352"
 
git config --global user.email "alix.bergeret@wlv.ac.uk"
 
</pre>
 
  
Create a new repository
+
== Further reading ==
<pre>mkdir great-work-by-alix
 
cd great-work-by-alix
 
git init
 
touch README.md
 
git add README.md
 
git commit -m "first commit"
 
git remote add origin git@fsegitlab.wlv.ac.uk:in9352/great-work-by-alix.git
 
git push -u origin master
 
</pre>
 
  
Push an existing Git repository
+
This tutorial only acts as an introduction, please refer to the following resources for more information and further reading:
<pre>
+
* [http://git-scm.com/doc Git documentation]
cd existing_git_repo
+
* [http://doc.gitlab.com/ce/ GitLab documentation]
git remote add origin git@fsegitlab.wlv.ac.uk:in9352/great-work-by-alix.git
 
git push -u origin master
 
</pre>
 

Latest revision as of 13:28, 28 January 2022

Main Page >> GitLab server

GitLab server

The University provides every student with a Git Version Control system called GitLab:

Please read through the following tutorials:

  1. Getting started with GitLab
  2. Cloning and pulling from GitLab
  3. Solving conflicts on GitLab
  4. Working environments
  5. Working with GitLab Issues, Milestones and Labels

Important: Please note that you should only use this server to store files related to University coursework. Personal or work-related files should not be stored on this server.

Further reading

This tutorial only acts as an introduction, please refer to the following resources for more information and further reading: