Check out Generating a new SSH key and adding it to the ssh-agent
❯ mkdir ~/.ssh
❯ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
❯ bash
❯ eval "$(ssh-agent -s)"
❯ fish
❯ ssh-add ~/.ssh/id_rsa
❯ sudo apt-get install xclip
❯ xclip -sel clip < ~/.ssh/id_rsa.pub
Finaly, we need to perform these steps --> Add the SSH key to your GitHub Account
Follow these steps
❯ cd ~/projects
❯ git clone git@github.com:MattCo23/dotfiles.git
❯ cd dotfiles
❯ cp ./gitconfig ~/.gitconfig