GitHub Presentation

31,440 views 13 slides Jan 18, 2019
Slide 1
Slide 1 of 13
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13

About This Presentation

Presentation on the utility of git/GitHub for making scientific research findable, accessible, interoperable, and reusable.

Also includes a tutorial to the most essential features of git/GitHub.


Slide Content

Brian Schilder Bioinformatician II Raj Lab, Department of Neuroscience Icahn School of Medicine at Mount Sinai Intro to GitHub

What is GitHub? Git is a version-control management and collaboration software (since 2005) OS X has git pre-installed Otherwise, install here GitHub (since 2008) is an online application that provides: A visual interface for git Free cloud storage for all your projects’ code/files https:// code.snipcademy.com /tutorials/ git /introduction/how-version-control-works How does Git (Hub) work?

Why is GitHub useful? Happy scientists!

GitHub Tutorial Setting up repositories Stage, Commit, Push Other commands

Setting Up Repositories Raj Lab Organization Account --- https :// github.com/RajLabMSSM

Setting Up Repositories Voila, you’ve created a new repo!

Setting Up Repositories Copy the repo to your local computer Open Terminal cd Desktop git clone <repo’s https URL> Enter GitHub username and password (only have to do this once)

Create/move in new files cd <repo name> nano . gitignore . DS_Store <any files larger than 100Mb> <files with sensitive info/passwords> To exit and save file in nano : Ctrl + X Y Enter

Edit, stage/add, commit, push, repeat!

git status Check which files are currently set up to be added/updated

Other important commands

GitHub Pages Host static websites for free on GitHub! Create new repo for website Add, commit, and push your code/files Click the Settings tab in the repo Go to GitHub Pages section S ource => select master branch (assuming the .html files are in the root dir ) Wait a bit … and you’ll have a new website! https://bschilder.github.io/BMSchilder_Website /

Resources Raj Lab GitHub Simple explanation of GitHub Reasons to use GitHub Official GitHub g uides