Skip to content

Git and Github

Git

Git is very powerful version control software. Git can track the changes in all the files of your projects and allow collarboration of multiple contributors.

For details, please check: https://git-scm.com/

Github

Github is an online platform, offering a cloud-based Git repository.

https://github.com/

Create a new id

Github signup page:

https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F&source=header-home

Clone a repository

Screenshot 2022-12-26 at 15 55 22

Syntax: git colne <the url you just copied>

Example: git clone https://github.com/Cloufield/GWASTutorial.git

Update the current repository

git pull

git setup

$ git config --global user.name "myusername"
$ git config --global user.email myusername@myemail.com

Create access tokens

Please see github official documents on how to create a personal token:

https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

Useful Resources