Error: Cannot pull with rebase: You have unstaged changes

前端 未结 9 1814
无人共我
无人共我 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:30

    If you want to keep your working changes while performing a rebase, you can use --autostash. From the documentation:

    Before starting rebase, stash local modifications away (see git-stash[1]) if needed, and apply the stash when done.

    For example:

    git pull --rebase --autostash
    

提交回复
热议问题