Recentemente ho fatto un git stash
, poi ha fatto un certo lavoro sul ramo e commesso, e ottenuto questi errori quando si cerca di fare un git stash apply
:Come risolvere "cancellare/modificare" conflitto causato da "git scorta applicare"
CONFLICT (delete/modify): app/controllers/orders_controller.rb deleted in Updated upstream and modified in Stashed changes. Version Stashed changes of app/controllers/orders_controller.rb left in tree.
CONFLICT (content): Merge conflict in app/models/product.rb
git status
evidenzia quanto segue: ha segnato
$ git status
# On branch develop
# Your branch is ahead of 'origin/develop' by 16 commits.
# Unmerged paths:
# (use "git reset HEAD <file>..." to unstage)
# (use "git add/rm <file>..." as appropriate to mark resolution)
#
# deleted by us: app/controllers/orders_controller.rb
# both modified: app/models/product.rb
il file "cancellare/modificare" è stato un nuovo file che ho aggiunto e non aveva ancora commesso prima della stash
.
Vorrei tornare nello stato in cui ero prima dello git stash
- con modifiche locali non inviate. Puoi suggerire come farlo accadere?
Grazie.
grazie. Mi sono appena reso conto che ho fatto il mio "stash apply" al ramo sbagliato. C'è un modo per annullare la 'stash apply' su questo ramo? – stupakov
Il ramo sbagliato è stato pulito prima di fare lo 'stash apply'? E, ha fatto "stash apply" o "stack pop"? – GoZoner
era pulito, e ho fatto 'stash apply' – stupakov