相关疑难解决方法(0)

如何处理这个 git 警告?“不鼓励在不指定如何协调不同分支的情况下进行拉取”

git pull origin master我收到以下消息后:

warning: Pulling without specifying how to reconcile divergent branches is
discouraged. You can squelch this message by running one of the following
commands sometime before your next pull:

  git config pull.rebase false  # merge (the default strategy)
  git config pull.rebase true   # rebase
  git config pull.ff only       # fast-forward only

You can replace "git config" with "git config --global" to set a default
preference for all repositories. You can also pass --rebase, --no-rebase,
or …
Run Code Online (Sandbox Code Playgroud)

git

446
推荐指数
19
解决办法
14万
查看次数

在Git上更改旧的提交消息

我试图为解释编辑旧提交信息在这里.

问题是,现在,当我试图运行rebase -i HEAD~5时说interactive rebase already started.

所以然后我尝试:git rebase --continue但是得到了这个错误:

error: Ref refs/heads/master is at 7c1645b447a8ea86ee143dd08400710c419b945b but expected c7577b53d05c91026b9906b6d29c1cf44117d6ba
fatal: Cannot lock the ref 'refs/heads/master'.
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

git repository rebase git-rebase

126
推荐指数
6
解决办法
10万
查看次数

标签 统计

git ×2

git-rebase ×1

rebase ×1

repository ×1