Accept this assignment
https://github.com/systems-programming/playground-username
playground-username
$ git config --global user.name 'YOUR NAME HERE' $ git config --global user.email 'YOUR.EMAIL@oberlin.edu' $ git config --global core.editor 'YOUR EDITOR'
HTTPS
$ git clone https://github.com/systems-programming...
where you replace https://github.com/systems-programming/... with the actual URL you copied.
https://github.com/systems-programming/...
cd
git clone
README
Playground
Playground Information about what playground does here. Usage examples Build instructions
$ git add README
$ git commit
$ git push
git mv
README.md
#
# Playground Information about what playground does here. # Usage examples # Build instructions
$ git status
$ git diff --cached
$ git diff
--cached
-
+
$ git add README.md
git add
$ git log
Entering your username and password every time you push or pull from GitHub is terrible. You definitely don’t want to have to do that every time. There are two options to make life more pleasant for you.
The first is to use the “git credential helper” to securely store your credentials. See this StackOverflow answer for some details.
The second method is to give GitHub your SSH key. This is the method I usually use. Note that the instructions for generating an SSH key say to use
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
but I would suggest the following instead.
$ ssh-keygen -t ed25519 -C "your.email@oberlin.edu"
Note that the key pair you generate this way will be called id_ed25519 and id_ed25519.pub instead of id_rsa and id_rsa.pub. The only real advantage here is that Ed25519 is much faster than RSA.
id_ed25519
id_ed25519.pub
id_rsa
id_rsa.pub
If you use the second method, the URI you want to copy for cloning will be git@github.com:systems-programming/... rather than https://github.com/systems-programming/....
git@github.com:systems-programming/...