Git Lesson¶
SWC Git Lessons: http://swcarpentry.github.io/git-novice/
Create a project in GitLab: https://docs.gitlab.com/ee/gitlab-basics/create-project.html
Generating a new SSH key pair in GitLab: https://docs.gitlab.com/ee/ssh/README.html#generating-a-new-ssh-key-pair
To generate an SSH key run the following command in the Jupyter terminal replacing MY_NAME with your name
ssh-keygen -t ed25519 -C "MY_NAME@hts2019" -f /home/jovyan/work/.HTSgitlab.key
Once you have done that you should be able to run the following to get the public key, then you can add this public key to your GitLab account by doing the following: 1. Select and copy the public key from below 2. Click your avatar in the upper right corner and select Settings. 3. From there navigate to SSH Keys and paste your public key in the “Key” section. The comment (MY_NAME@hts2019) should appear under “Title”. If not, give your key an identifiable title 4. click Add key.
[7]:
cat /home/jovyan/work/.HTSgitlab.key.pub
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKcySbh4K/+HUL04t8aL2olu2XXjkA/8vv0XUyDQ6CF7 josh@hts2019
Fork a Repo in Gitlab¶
Fork a repo in GitLab: https://docs.gitlab.com/ee/gitlab-basics/fork-project.html
Mirror a repo in Gitlab https://docs.gitlab.com/ee/workflow/repository_mirroring.html
HTS Course repo is https://gitlab.oit.duke.edu/hts2019/hts2019-notebooks