Right below the “Changes to be committed” text, it says “use git reset HEAD … to unstage”. So, let’s use that advice to unstage the benchmarks.rb file:

$ git reset HEAD benchmarks.rb
benchmarks.rb: locally modified
$ git status
# On branch master
# Changes to be committed:
# (use “git reset HEAD …” to unstage)
#
# modified: README.txt
#
# Changes not staged for commit:
# (use “git add …” to update what will be committed)
# (use “git checkout — …” to discard changes in working directory)
#
# modified: benchmarks.rb
#

The command is a bit strange, but it works. The
from here

Залишити відповідь

Ваша e-mail адреса не оприлюднюватиметься. Обов’язкові поля позначені *