我想将一些软件推送到“dev”分支。软件是在另一台装有 Windows 的计算机上开发的,目前我已经在 Linux 计算机上从头开始重新初始化 git 存储库,并希望将我的工作推送到公司存储库并将我的补丁添加到以前的开发分支
git init
git branch -M dev
git remote add origin https://github.com/<company>/<repository>.git
git add .
git commit -m "first commit"
git pull --rebase origin dev git@gitserv:<company>/<repository>.git
最后一个命令不起作用,我不明白我的麻烦。首先,我有 SHA256 的 Github 密钥:CUxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
其次,我有“个人访问令牌(经典)”,我们通常在“开发人员设置”下设置,看起来像 ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
第三,我有这个〜/ ssh / config
Host gitserv
HostName git.com
IdentityFile ~/.ssh/id_rsa.github
IdentitiesOnly yes
AddKeysToAgent yes
当然,我有 ~/.ssh/id_rsa.github 和 ~/.ssh/id_rsa 一切看起来都很好,但最后一个命令
git pull --rebase origin dev git@gitserv:<company>/<repository>.git
不起作用,询问登录名/密码然后说
remote: Support for password authentication was removed on August 13, 2021.
我不明白我的错误,我做错了什么?