Install and configuration
git installation and configuration
Installation
sudo apt update && sudo apt upgrade -y
sudo apt install -y git
User configuration
git config --global user.name "${USER}"
git config --global user.email "email@example.com"
git config --global push.default simple
Create your ssh key
ssh-keygen -t rsa -C "${USER}@$(hostname)" -b 4096
More informations about ssh key.
Then you need to add your public key to your git server.
cat ~/.ssh/id_rsa.pub