3
變化當我做git status
,我看到有本地修改一些文件(好像是縮進的變化)。做一個混帳藏匿不會刪除git的本地
當我做git stash
,它不會從隊列中刪除這些文件。它阻止從遠程git獲取自動提取腳本。
$ git stash
Saved working directory and index state WIP on develop: 05c60a5 Merge remote-tracking branch 'origin/develop' into develop
HEAD is now at 05c60a5 Merge remote-tracking branch 'origin/develop' into develop
$ git stash
On branch develop
Your branch and 'origin/develop' have diverged and have 23 and 127 different commit(s) each, respectively.
Changed but not updated:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: config/buznames/businessname_map.
modified: public/css/_lib/dropdown.less
modified: public/css/_lib/secureBadge.less
運行'git diff',看看有什麼不同。它是縮進還是行尾? – poke
它看起來像一個格式更改。內容完全刪除並再次添加。 – sonicMandelBrot
'git checkout - file'似乎也不適用於這些文件。 – sonicMandelBrot