赞
踩
报错如下:
Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
sudo yum -y install git
ssh-keygen -t rsa -C "your_email@youremail.com"
GitHub配置
在Settings->SSH and GPG keys->New SSH key,把刚刚公钥的内容复制进去。
本地配置
git config --global user.name "your_name"
git config --global user.email "your_email@youremail.com"
git init
#这里要注意用SSH以git开头的
git remote add origin git@github.com:youe_name/your_repositories.git
git add -A
git commit -m "first commit"
git push origin master
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。