Localisation Démarches et services Actualités Météo

Actualités

Liste des actualités en colonne

Accueil Mairie de Fayet-Ronaye

Oh shit, I did something terribly wrong, please tell me git has a magic time machine!?!

git reflog # you will see a list of every thing you've done in git, across all branches! # each one has an index HEAD@{index} # find the one before you broke everything git reset HEAD@{index} # magic time machine

En voir +

Accueil Mairie de Fayet-Ronaye

Oh shit, I did something terribly wrong, please tell me git has a magic time machine!?!

git reflog # you will see a list of every thing you've done in git, across all branches! # each one has an index HEAD@{index} # find the one before you broke everything git reset HEAD@{index} # magic time machine

En voir +

Accueil Mairie de Fayet-Ronaye

Oh shit, I did something terribly wrong, please tell me git has a magic time machine!?!

git reflog # you will see a list of every thing you've done in git, across all branches! # each one has an index HEAD@{index} # find the one before you broke everything git reset HEAD@{index} # magic time machine

En voir +

Accueil Mairie de Fayet-Ronaye

Oh shit, I did something terribly wrong, please tell me git has a magic time machine!?!

git reflog # you will see a list of every thing you've done in git, across all branches! # each one has an index HEAD@{index} # find the one before you broke everything git reset HEAD@{index} # magic time machine

En voir +

Accueil Mairie de Fayet-Ronaye

Oh shit, I did something terribly wrong, please tell me git has a magic time machine!?!

git reflog # you will see a list of every thing you've done in git, across all branches! # each one has an index HEAD@{index} # find the one before you broke everything git reset HEAD@{index} # magic time machine

En voir +

Accueil Mairie de Fayet-Ronaye

Oh shit, I committed and immediately realized I need to make one small change!

# make your change git add . # or add individual files git commit --amend # follow prompts to change or keep the commit message # now your last commit contains that change!

En voir +