sudo apt update
sudo apt upgrade
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install git
# Confirm if git is installed successfully
git --version
# Setting up Git
git config --global user.name "Your Name"
git config --global user.email "yourname@example.com"
git config --global init.defaultBranch main
git config --global color.ui auto
git config --global pull.rebase false
# Generating SSH
ssh-keygen -t ed25519 -C "your@email.com"
# Read SSH key
cat ~/.ssh/id_ed25519.pub
# Now you can copy/paste the key in github/gitlab