sciware

Sciware

Intro to GitHub

https://sciware.flatironinstitute.org/40_SummerIntro/github1.md

Agenda

Intro to Git and GitHub

Version control

an open-source, distributed, command-line, version-control tool

GitHub

Get a free GitHub Pro account

GitHub Pro accounts for Education

Do you already have GitHub Copilot?

https://github.com/settings/copilot/

GitHub Pro accounts for Education - Qualification

To request a GitHub Pro account - Edu email

Settings screenshot

To request a GitHub Pro account - Edu email

or

To get a Pro account - Settings

Edu benefits screenshot

To get a Pro account - Application

HOMEWORK

Finish your GitHub for Education application.

Make a new GitHub Repository

(stickies down)

Make a new Private GitHub repo with a README

https://github.com/new

New GitHub repository setup screenshot

Copy the SSH address to the repository

Clone screenshot

Make sure git is installed

 > git version
git version 2.30.1

Clone your new repository to your computer

 > git clone git@github.com:kelle/delete-me.git
> ls
> cd delete-me
> ls 

Setting up GitHub on your Computer

Setting your name in Git

See what name is currently set

 > git config --global user.name

Set your full name

 > git config --global user.name "Mona Lisa"

Setting your email address

See what email address is currently set

 > git config --global user.email

Set an email address

 > git config --global user.email "email@email.org"

(Ideally set to the same email address you used for GitHub account)

Viewing your email address on GitHub

Generate an SSH key

 > ssh-keygen -t ed25519
 > cat ~/.ssh/id_ed25519.pub
ssh-ed25519 AAA..... user@host

Copy this whole line to the clipboard

Add the SSH key to GitHub

SSH Keys screenshot

Add the SSH key to GitHub

Setup Git’s default text editor

So that you don’t get stuck in vi:

 > git config --global core.editor "nano -w"

How to set up your favorite editor with Git:

https://git-scm.com/book/en/v2/Appendix-C%3A-Git-Commands-Setup-and-Config#ch_core_editor

Questions?

Survey

Next week

Tools for better coding

Thursday, June 12, 10am-12pm.

Survey