在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) 我试图为解释编辑旧提交信息在这里.
问题是,现在,当我试图运行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)
有任何想法吗?