В моем репозитории у меня есть master
и gh-pages
, при попытке объединить их оба на git я столкнулся с множеством конфликтов, которые мешают мне сейчас обновлять файлы на gh-pages
. Моя цель состоит в том, чтобы ветка gh-pages
имела те же обновленные файлы, что и основная ветвь.
При попытке запустить эту команду git reset --hard master
я получаю HEAD is now at 08a878a changes
, но при проверке хранилища ничего не меняется. И когда я оформляю заказ, gh-pages все равно выдает то же сообщение, что и раньше:
Air-de-Joana: novo joana leitao oliveira$ git pull
hint: Waiting for your editor to close the file... error: There was a problem with the editor 'vi'.
Not committing merge; use 'git commit' to complete the merge.
Air-de-Joana: novo joana leitão oliveiras
Когда я запускаю git pull
То есть:
E325: ATTENTION
Found a swap file by the name "/Desktop/novo/.git/.COMMIT_EDITMSG. Swp"
owned by: joana leitao oliveira dated: Sat Apr 18 11:57:03 2020
file name: joana leitao oliveira/Desktop/novo/.git/COMMIT_EDITMSG
modified: YES
user name: joanaleitaooliveira host name: Air-de-Joana.lan
process ID: 716 (STILL RUNNING)
While opening file "/Users/joana leitao oliveira/Desktop/novo/.gi/COMMIT_EDITMSG"
dated: Sun Apr 19 16:20:34 2020
NEWER than swap file!
(1) Another program may be editing the same file. If this is the case,
be careful not to end up with two different instances of the same
file when making changes. Quit, or continue with caution.
(2) An edit session for this file crashed
If this is the case, use ":recover" or "vim -r /Users/joanaleitaooliveira/Desktop/novo/.git/COMMIT_EDITMSG"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/Users/joanaleita oliveira/Desktop/novo/.git/.COMMIT_EDITMSG. Swp"
to avoid this message.
Swap file "`/Desktop/novo/.git/.COMMIT EDIT MSG.swp`" already exists!
[O]pen Read-Only, (E)dit anyway. (R)ecover, (Q)uit, (A)bort:
Я решил сбросить слияние, использовал git merge --abort
и сумел удалить файл MERGE_HEAD, но конфликты одинаковы. Я все еще не могу совершить, потянуть или пу sh. Должен ли я сбросить ветку? И как я могу это сделать?