Skip to content

Instantly share code, notes, and snippets.

@nosmall
Last active July 18, 2024 03:52
Show Gist options
  • Save nosmall/fcb967711c7568f454e91a441e7ec908 to your computer and use it in GitHub Desktop.
Save nosmall/fcb967711c7568f454e91a441e7ec908 to your computer and use it in GitHub Desktop.
Setup Git and Github in Ubuntu 20.04

Setup Git and Github in Ubuntu 20.04

Install git for sure

sudo apt install git -y

Setup Git username & email

git config --global user.name 'nosmall'
git config --global user.email 'jirka@jiripocta.cz'

Setup new SSH authentication

ssh-keygen -t ed25519 -C "jirka@jiripocta.cz"
Enter
Enter

Copy new public ssh key to github page, settings > SSH and GPG Keys (https://github.com/settings/keys)

cat ~/.ssh/id_ed25519.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment