sudo apt update sudo apt install git -y Verify the installation:
ssh-keygen -t ed25519 -C "your-email@example.com" eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_ed25519 cat ~/.ssh/id_ed25519.pub Then add the displayed public key to your GitHub account under . 4. Basic GitHub Workflow on Ubuntu Clone a repository: github on ubuntu
git --version Set your global username and email (use the same email associated with your GitHub account): sudo apt update sudo apt install git -y