Home » Git »
0
March 31st, 2011
Git undo commit terakhir
$ 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.
By mdpai
- [Ubuntu] Kompil kernel menggunakan git dari 3.3-rc3 ke 3.3-rc4
- [Ubuntu] Kompil mainline kernel
- ZTE MF627 USB modem driver untuk Win 7
- kredit RM100 Percuma untuk akaun Adwords
- Linked list dalam C
- Struktur Data (data structure)
- Pointer dalam C
- Struktur (structure) dalam C
- Pembolehubah (variable) dalam C
- Bermula dengan C : Hello World
- tajudin : bagus mas cuman saya ada masalah dengan program sya yang berhubungan d ...
- P0L5K4H4CKR3W : salam..tumpang tanya bro.. simbol $ tu untuk apa,apa fungsinya? ...
- ultraman : adoi.. camne nak wat greet org yang da login kat page kite ek? contoh ...
- mdpai : @akmal : saya kat kota bharu :D @hana : cadangan projek tu banyak kal ...
- mdpai : @Wanrushdi : Boleh try cek data yang dikembalikan oleh mysql_query. An ...
- mdpai : security salt ni digunakan untuk tujuan menambahbaik security dalam se ...
- Wanrushdi : minta maaf, coding yg tlh di attach tu... tak tepat..... jd minta tlg ...
- Wanrushdi : <?php include 'connect.php'; $no = 1; $kodsek= $_GET[& ...
- Wanrushdi : Saya dah keliru ni, kenapa coding array yg sy guna ni tidak paparkan s ...
- azz : kenapa perlu nilai itu.. adakah nilainya .m5d atau password untuk log ...

