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.
Size: 5.48 MB
Language: en
Added: Jan 18, 2019
Slides: 13 pages
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 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