Esiste un git stashcomando che blocca le modifiche, ma le mantiene anche nella directory di lavoro? Quindi praticamente git stash; git stash applyin un passo?
git stash && git stash apply. Noterai che le risposte a quella domanda sono abbastanza diverse dalle mie.