CichyGlosZTyluGlowy
#programowanie #naukaprogramowania #git
Popsuł mi się plik na kompie, więc chciałem go wywalić i pobrać z gita, a w międzyczasie edytował go ktoś inny. Teraz jak chcę zrobić git pull, to konsola pokazuje mi:

Pull is not possible because you have unmerged files.
Please, fix them up in the work tree, and then use 'git add/rm '
as appropriate to mark resolution, or use 'git commit -a'.

Jak to naprawić?
1
  • Najlepsze
  • Wszystkie komentarze
LuK1337
@CichyGlosZTyluGlowy: jak nie zależy Ci na twoich zmianach to: git reset --hard; git pull
1
impressive22
@CichyGlosZTyluGlowy: ja usuwam wszelkie zmiany lokalne "git checkout -- ."
1
LuK1337
@CichyGlosZTyluGlowy: pokaż git status
0
CichyGlosZTyluGlowy
@LuK1337:
On branch master
Your branch and 'origin/master' have diverged,
and have 1 and 1 different commit each, respectively.
(use "git pull" to merge the remote branch into
0
CichyGlosZTyluGlowy
@LuK1337: o s-------n, wyczyściło całą zawartość pliku. A ja tam tylko 1 linijkę edytowałem.
0
Nemeczekes
Nemeczekes
@CichyGlosZTyluGlowy: bez mózgu ciężko
0
quiteflame
@CichyGlosZTyluGlowy: wrzucasz zmiany lokalne do stasha, resetujesz zmiany robisz pulla, rozpakowujesz stasha, robisz merge
0