Error: Cannot pull with rebase: You have unstaged changes

前端 未结 9 1764
无人共我
无人共我 2020-12-07 07:33

I have started collaborating with a few friends on a project & they use the heroku git repository.

I cloned the repository a few days ago and they have since mad

9条回答
  •  有刺的猬
    2020-12-07 08:27

    You can always do

    git fetch && git merge --ff-only origin/master
    

    and you will either get (a) no change if you have uncommitted changes that conflict with upstream changes or (b) the same effect as stash/pull/apply: a rebase to put you on the latest changes from HEAD and your uncommitted changes left as is.

提交回复
热议问题