Я относительно новичок в git. Я был на ветке под названием temp, которую я создал недавно. Я сделал 3 фиксации и нажал. Затем я сделал перезагрузку ко второй фиксации и внес некоторые изменения.can not git push или git pull
git pull
дает мне:
You asked me to pull without telling me which branch you want to merge with, and 'branch.temp.merge' in your configuration file does not tell me, either. Please specify which branch you want to use on the command line and try again (e.g. 'git pull '
git push
дает мне:
! [rejected] temp -> temp (non-fast-forward) error: failed to push some refs to ' https://myserver.com/git/project ' To prevent you from losing history, non-fast-forward updates were rejected Merge the remote changes (e.g. 'git pull') before pushing again. See the 'Note about fast-forwards' section of 'git push --help' for details.
Я действительно хочу, чтобы удалить третье обязательство, которое я уже толкали, и нажмите на последний коммит я сделал после сброса ко 2-й фиксации. Как мне это сделать?