【问题标题】:Pull and push doesn't do anything拉和推没有任何作用
【发布时间】:2021-12-23 10:26:34
【问题描述】:

实际上我想拉和推送一个存储库,但是当我让 git pull 不要求输入密码时,例如我做了一个 git status 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 status 运行良好,但是当我进行 git pull 或 git push 时,日志不会像这样

-> % git pull

连密码都不问

【问题讨论】:

标签: git visual-studio-code bitbucket


【解决方案1】:

我会首先检查我的远程存储库是否配置正确。 您可以使用git remote -v 来检查我的遥控器是否已配置。

如果否:则首先配置(git remote add origin)

如果是:那么您可以使用 git config 修改配置 git config --global user.name "Mona Lisa" git config user.email "your_email_address@example.com"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-15
    • 2020-10-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-14
    相关资源
    最近更新 更多