我已尽一切努力放弃本地更改。我不需要任何改变。我想丢弃一切。我试过:
git checkout .
git reset
git reset HARD
git clean -f
但无论我尝试什么,当我运行 git status 时,我都会看到:
On branch release/3.12
Your branch is up-to-date with 'origin/release/3.12'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
public/src/javascripts/views/
nothing added to commit but untracked files present (use "git add" to track)
而且由于这些更改,我无法切换分支。我怎样才能简单地放弃本地更改?
最佳答案
关于git - 无法放弃本地更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32331521/