Effectively using Git and GitHub can streamline a lot of your work, including submissions and making sure your files at home and at school are in sync with each other. If done correctly, you can avoid interacting with the GitHub webui entirely, meaning you will no longer need to deal with 2FA and devices that you should not be using in school.
SSH key pairs are two keys that can be used to authenticate a client to an SSH server, or other service (such as Github). Each key pair consists of a public key and a private key. Never share or upload your private key. Your public key is safe to distribute.
$ cat ~/.ssh/id_ed25519.pub
$ ssh-keygen -t ed25519
~/.ssh directory.id_ed25519 and the associated public key will be called id_ed25519.pub.cat to display the contents of your public key in the terminal:
$ cat ~/.ssh/id_ed25519.pub$ ssh -T git@github.com after this command you will be prompted to type the ssh-key password that you chose when creating the key.Hi stuydw! You've successfully authenticated, but GitHub does not provide shell access.Git is a program designed to:
A repository is a directory containing work to be tracked by git.
GitHub is A website that provides a central place to store git repositories.
git installed and accessible via a shell in the Terminal program.$ git config --global user.name "Q Tip"
$ git config --global user.email qtip@tribe.quest
$ git config --global core.editor nano
$ git config --global pull.rebase false
$ git clone REPO$ git add FILE$ git commit -a -m "fixed infinite while loop bug in foo()"$ git push$ git pull$ git status$ git history