If you need to input your account and password every time you pull or submit the code, first of all, it may be due to the permissions of the Ubuntu system, and second, you need to solve the problem manually. You can follow the following steps to see which more in line with their own situation.
Step 1 (Permission issue) :
Chmod 700 / home/zhangl /. SSH chmod 600 / home/zhangl /. SSH/authorized_keys 1 2 after if you execute the above command, use the git pull (twice) code, you won’t have to enter account and password for the second time, congratulations! You have solved, otherwise proceed to step two.
Step 2 (Create an authentication file) :
vim /home/zhangl/ .git-credentials
# Input content https://{username}:{password}@github.com
Git config –global credential.helper store 1 2 3 4 5 6 7 A helper = will be added to /home/zhangl/.gitconfig When git push/pull is executed, you need to enter your account and password again. Is it nice to say ~~~