Это правда, что я новичок, когда собираюсь использовать git, но я надеюсь, что я не потерял слишком много своей работы.Я попытался переключиться на основную ветку, но, как вы можете видеть, безуспешно.
Alx@I5-PC /d/workspace/android/tutorialA2 (about_screen)
$ git st
# On branch about_screen
nothing to commit (working directory clean)
Alx@I5-PC /d/workspace/android/tutorialA2 (about_screen)
$ git br
master
* about_screen
Alx@I5-PC /d/workspace/android/tutorialA2 (about_screen)
$ git co master
Unlink of file 'res/layout/view_about.xml' failed. Should I try again? (y/n) y
Unlink of file 'res/layout/view_about.xml' failed. Should I try again? (y/n) err
or: unable to unlink old 'res/layout/view_about.xml' (Permission denied)
Теперь, когда я хочу сделать проверку до последнего стабильного коммита, я получаю это сообщение:
$ git co 8759ba
fatal: Unable to create 'd:/workspace/android/tutorialA2/.git/index.lock': File exists.
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.