Manual GitLab

From HPCwiki
Revision as of 23:03, 26 March 2015 by Megen002 (talk | contribs)
Jump to navigation Jump to search

Manual GitLab@WUR: Create projects and add files

Signing up

If you haven't done so already, first sign up at GitLab@WUR:

 https://git.wageningenur.nl

Example of local commands to execute

<source lang='bash'>

    1. This shows an example, step by step, to create a project and add files into that project.
    1. Configuration:
  1. 1. Create a folder in your machine:

/home/juanma/Git_Stuff

  1. 2. configuration step 1: Copy into that folder the commands from the git-web: https://git.wageningenur.nl/ # and then ABGC_Genomics/

cd /home/juanma/Git_Stuff git config --global user.name "Herrero Medrano, Juan" git config --global user.email "juan.herreromedrano@wur.nl"

  1. 3. configuration step 2:

cd /home/juanma/Git_Stuff ssh-keygen -t rsa cd /home/juanma/.ssh/ cat id_rsa.pub

  1. Copy the code and go to the git-web: Profile settings -> SSH Keys. Paste the code and add key.
  2. IMPORTANT: make sure you use the *public* key, not the private part of the key pair!
  3. Go back to the terminal:

git clone git@git.wageningenur.nl:ABGC_Genomics/Turkey_Association.git

  1. Once I have made this connection, my project will appear as a folder in /home/juanma/Git_Stuff


    1. Add files:
  1. Add scripts to the project "Turkey_Association" :

cd /home/juanma/Git_Stuff/Turkey_Association cp myscript.sh /home/juanma/Git_Stuff/Turkey_Association git add myscript.sh git commit -m "myfirst_commit" git push origin master </source>

See also

Bioinformatics tips, tricks, workflows at ABGC

External links