vs git提示: 無法拉取,因爲存在未提交的更改。請提交、儲藏或澈消更改,然後重試。有關詳細信息,請查看輸出窗口。

查看輸出窗口提示:

正在從 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 --ff-only on the command line to override the configured default per
invocation.
91bd65d 啊
virtual bc8b2abc7fcad7da5c1258fa51ac91fdf7d2f4b2
拉取操作會覆蓋以下 67 個文件的本地更改:

xxx

 

 

...

 

解決:

cmd進入項目目錄執行

git pull --rebase

之後再推送

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章