Table of Contents | ||||
---|---|---|---|---|
|
Info |
---|
If you are to be working on the Data & Controls team, please use this Google Form to request GitHub Access: https://forms.gle/J718HJVWyPdvwXKL8GitHub Basics |
Setting Up Git
Install Git
Note Git is already installed on macOS
(non-WSL) Make sure you install Git Bash along with your installation, and leave everything else default
(WSL) from WSL:
sudo apt install git
If you’re already using Linux I bet you know what Git is
For Ubuntu, run
apt-get install git
For Arch Linux, run
pacman -S git
Set up SSH tokens (do this from WSL if using WSL)
First, run
ssh-keygen
in a terminal anywhere, and just leave everything default by pressing enterNavigate to
~/.ssh/
and openid_ed25519.pub
orid_rsa.pub
in a text editorThis is a hidden directory, so on Windows you might need to enable hidden folders if in GUI. Note on WSL this is File Explorer → Linux → Ubuntu → home → your name → .ssh → id_rsa.pub
To open from terminal if you have VSCode installed, run
code ~/.ssh/id_rsaed25519.pub
Copy the ssh key listed in this file into your GitHub’s SSH keys here
If you have multiple machines, you’ll need to do this for each machine (i.e. dual booting or using a VM)
Run these two commands to save your GitHub credentials, but put in your own credentials (from WSL if using WSL)
Code Block $ git config --global user.name "John Doe" $ git config --global user.email johndoe@example.com
View the Git 101 Presentation below if you’re not familiar with Git
...