check_latest_version && sudo apt update && sudo apt upgrade -y
Fix authentication:
git config --global user.name "username"
git config --global user.email "email"
git remote set-url origin https://token@github.com/user/repo.git
Configure SSH authentication:
ssh-keygen -t rsa -b 4096
ssh-add ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub
Generate and use token:
git clone https://token@github.com/user/repo.git
git remote set-url origin https://token@github.com/user/repo.git
Git cannot authenticate with remote repository due to credential issues.
git config --list
ssh -T git@github.com
git remote get-url origin