我对吉特布的承诺有困难。我试过所有的命令,一切似乎都很好。我能够推动回购的进展,但它没有显示在个人资料。然而,每当我做git推送响应是密码'https://username@github.com':XXX -这不是我的电子邮件地址,我认为这可能是问题。
我使用了命令git全局user.email和电子邮件在此也是正确的。
我确信本地pc有问题,因为当我在git网站上创建一个问题时,它反映了个人资料中的贡献。
任何帮助都会很好。
谢谢
git config --global user.name
CorrectUsername
git config --global user.email
CorrectEmail@correctdomain
git config --unset --global user.name
git config --unset --global user.email
git config --unset user.name
git config --unset user.email
git remote rm origin
git remote set-url origin https://github.com/CorrectRepo/CorrectRepo.git
git config user.name "CorrectUsername"
git config user.email "CorrectEmail"
git config --global user.name "CorrectUsername"
git config --global user.email "CorrectUsername@correctdomain"
git config --list发布于 2022-04-02 03:38:15
“https://username@github.com”--这不是你的电子邮件地址,而是username的个人存取令牌地址。
git init
git add .
git config --global user.name "Username"
git config --global user.email "Email"
git branch -M [branch name] # example 'main' or 'master'
git remote add origin [repository url]
git commit -m "Update"
git push然后输入用户名和个人访问令牌。
不要使用强制选项git push -f origin main,它将删除所有以前的提交。
使用
git push
# or
git push -U origin mainhttps://stackoverflow.com/questions/71714609
复制相似问题