Discuss / Git / reset后该怎么做?

reset后该怎么做?

Topic source

我reset后,sourcetree就会提示我有可拉取的东西,然后我拉取又复原了,不拉取推送(push)的话又报错,怎么搞?

廖雪峰

#2 Created at ... [Delete] [Delete and Lock User]

你的远程比本地新,必须先pull,本地合并,再推

git push -f,强制推送


  • 1

Reply