1
spostare commit
omartek edited this page 2024-07-28 16:04:11 +02:00

Spostare gli ultimi commit su un ramo e spostare HEAD/main indietro

Come indicato qui

# Creiamo il nuovo ramo
git branch nuovoramo

# Muoviamo il puntatore su master indietro di 1 commit (o del numero che serve)
git reset --hard HEAD~1

# Spostiamoci sul nuovo ramo
git checkout nuovoramo