Difference between revisions of "Code"

From biophysics
Jump to navigation Jump to search
Line 15: Line 15:
 
* Add the repository
 
* Add the repository
  
=== Terminal ===
+
Command line instructions
[[File:test.pdf]]
+
 
 +
Git global setup
 +
git config --global user.name "Guus van Bentum"
 +
git config --global user.email "g.vanbentum@science.ru.nl"
 +
Create a new repository
 +
git clone https://gitlab.science.ru.nl/gvbentum/test.git
 +
cd test
 +
touch README.md
 +
git add README.md
 +
git commit -m "add README"
 +
git push -u origin master
 +
Existing folder or Git repository
 +
cd existing_folder
 +
git init
 +
git remote add origin https://gitlab.science.ru.nl/gvbentum/test.git
 +
git push -u origin master
  
 
== How can I put my changes of the code in the repository  (push)?==
 
== How can I put my changes of the code in the repository  (push)?==

Revision as of 15:56, 5 June 2015

The code for running experiments and analysing data is all stored on gitlab.

How can I access Gitlab?

Login to gitlab with your Science Faculty account. Some repositories.

How can I get (clone) the code from the repository?

You can get the code from the repository in several ways, all with their own advantages.

Download zip-file

Click

Command line instructions

Git global setup git config --global user.name "Guus van Bentum" git config --global user.email "g.vanbentum@science.ru.nl" Create a new repository git clone https://gitlab.science.ru.nl/gvbentum/test.git cd test touch README.md git add README.md git commit -m "add README" git push -u origin master Existing folder or Git repository cd existing_folder git init git remote add origin https://gitlab.science.ru.nl/gvbentum/test.git git push -u origin master

How can I put my changes of the code in the repository (push)?

Which repositories exist, and what are they for?

Experiment

Saccade

PandA