Git
Git undo commit terakhir
Posted on .
$ git reset --soft HEAD^ (1)
$ edit something here (2)
$ add files to using git add
$ git commit -c ORIG_HEAD (3)
1 – This is most often done when you remembered what you just committed is incomplete, or you misspelled your commit message, or both. Leaves working tree as it was before “reset”.
2 – Make corrections to working tree files.
3 – “reset” copies the old head to .git/ORIG_HEAD; redo the commit by starting with its log message. If you do not need to edit the message further, you can give -C option instead.
Fairuz
http://www.tutorialmelayu.comSystem Engineer (Texas Instruments France), Masters in Electronics , Embedded System Engineering,
Author hotfloppy
Posted at 11:25 pm May 2, 2012.
Kata TutorialMelayu, ni apsal ada English lak ? huhuhuhu..
Author mdpai
Posted at 3:08 am August 31, 2012.
keke, hari tu nak cepat untuk buat note kat opis, tak sempat tuka bahasa.