Setting Up git
So you want to use git
like a pro but are helplessly overwhelmed?
As sorry as I am to say, that’s pretty standard.
How about some help?
To get to a working git
setup you can use , you need a few things:
- An
ssh
key pair -
git
installed - A GitHub account (or any other git repository service, but let’s not overcomplicate this)
- Your ssh key deposited on GitHub
§ 1. Generating the ssh key pair
You get your ssh key by running
ssh-keygen
followed by a few <RET>
s.
Do not use a passphrase.
Now, you should have two new files in .ssh
, id_ed25519
and id_ed25519.pub
:
ls ~/.sshknown_hosts id_ed25519 id_ed25519.pub
Done.
§ 2. Install git
My favorite method is via Nix, but please just refer to git’s home page.
§ 3. Get a GitHub account
Pretty simple: Go here and follow the process.
§ 4. Set up ssh for GitHub
Follow this guide.
And then check whether everything worked:
And that’s it. Nice! :)