Current Git on my system is: 2.25.1 and require Git >= 2.8
For Ubuntu, this PPA provides the latest stable upstream Git version
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

git --version

git version 2.37.3

Configure Git and GitHub

git config --global "Your Name"
git config --global ""
git config --global init.defaultBranch main
git config --global color.ui auto
git config --get
git config --get

Create a GitHub Account or Sign In

Create an SSH Key
Verify if an Ed25519 algorithm SSH key already installed
ls ~/.ssh/
If non exists:
ssh-keygen -t ed25519 -C
Accept defaults
Password recommended and not required.

Link Your SSH Key with GitHub
Log into GitHub and click on your profile picture in the top right corner.
Click on Settings in the drop-down menu.
Left-hand side, click SSH and GPG keys
click the green button in the top right corner that says New SSH Key.

Name your key
Leave this window open while you do the next steps.
Copy your public SSH key
cat ~/.ssh/
Highlight and copy the output, which starts with ssh-ed25519 and ends with your email address.
Go back to GitHub in your browser window and paste the key you copied into the key field.
Click Add SSH key.
You’re done! You’ve successfully added your SSH key!

Testing your key