实际上我想拉和推一个存储库,但当我进行git拉时,不需要密码,例如,我进行了git状态a,这是的结果
-> % git status
On branch beta
Your branch is ahead of 'origin/beta' by 1 commit.
(use "git push" to publish your local commits)
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: account_dynamic_reports/models/res_company.py
git状态运行良好,但当我进行git pull或git push时,日志不会像这个那样做任何事情
-> % git pull
甚至不要求密码
我会首先检查我的远程存储库是否配置正确。您可以使用git remote -v
检查我的遥控器是否已配置。
如果否:则配置第一个(gitremoteaddorigin(
如果是:那么您可以使用git-config修改配置git config --global user.name "Mona Lisa"
git config user.email "your_email_address@example.com"