Manual GitLab: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 12: | Line 12: | ||
## Configuration: | ## Configuration: | ||
# 1. Create a folder in your machine: | # 1. Create a folder in your machine, e.g.: | ||
mkdir ~/Git_Stuff | |||
# 2. configuration step 1: | # 2. configuration step 1: | ||
git config --global user.name "Herrero Medrano, Juan" | git config --global user.name "Herrero Medrano, Juan" | ||
git config --global user.email "juan.herreromedrano@wur.nl" | git config --global user.email "juan.herreromedrano@wur.nl" | ||
# 3. configuration step 2: | # 3. configuration step 2: make private-public rsa key pair | ||
ssh-keygen -t rsa | ssh-keygen -t rsa | ||
cd | cd ~/.ssh/ | ||
cat id_rsa.pub | cat id_rsa.pub | ||
# Copy the code and go to the git-web: Profile settings -> SSH Keys. Paste the code and add key. | # Copy the code and go to the git-web: Profile settings -> SSH Keys. Paste the code and add key. | ||
# IMPORTANT: make sure you use the *public* key, not the private part of the key pair! | # IMPORTANT: make sure you use the *public* key, not the private part of the key pair! | ||
# Go back to the terminal: | # Go back to the terminal: | ||
cd ~/Git_Stuff | |||
git clone git@git.wageningenur.nl:ABGC_Genomics/Turkey_Association.git | git clone git@git.wageningenur.nl:ABGC_Genomics/Turkey_Association.git | ||
# Once I have made this connection, my project will appear as a folder in | # Once I have made this connection, my project will appear as a folder in ~/Git_Stuff | ||
## Add files: | ## Add files: | ||
# Add scripts to the project "Turkey_Association" : | # Add scripts to the project "Turkey_Association" : | ||
cp myscript.sh ~/Git_Stuff/Turkey_Association | |||
cp myscript.sh / | cd ~/Git_Stuff/Turkey_Association | ||
git add myscript.sh | git add myscript.sh | ||
git commit -m "myfirst_commit" | git commit -m "myfirst_commit" |
Revision as of 23:08, 26 March 2015
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'>
- This shows an example, step by step, to create a project and add files into that project.
- Configuration:
- 1. Create a folder in your machine, e.g.:
mkdir ~/Git_Stuff
- 2. configuration step 1:
git config --global user.name "Herrero Medrano, Juan" git config --global user.email "juan.herreromedrano@wur.nl"
- 3. configuration step 2: make private-public rsa key pair
ssh-keygen -t rsa cd ~/.ssh/ cat id_rsa.pub
- Copy the code and go to the git-web: Profile settings -> SSH Keys. Paste the code and add key.
- IMPORTANT: make sure you use the *public* key, not the private part of the key pair!
- Go back to the terminal:
cd ~/Git_Stuff git clone git@git.wageningenur.nl:ABGC_Genomics/Turkey_Association.git
- Once I have made this connection, my project will appear as a folder in ~/Git_Stuff
- Add files:
- Add scripts to the project "Turkey_Association" :
cp myscript.sh ~/Git_Stuff/Turkey_Association cd ~/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