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 collaboration 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 clone <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 documentation 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