https://startwithwai.com/2013/01/10/follow-your-heart/ follow your heart
https://startwithwai.com/2017/10/15/how-life-works/ how life works
git log --oneline ดูแบบบรรทัดเดียว
ย้อน
git reset เลขcommit
git reflog มีแสดงhead@1 ดัวย
git reset “head@1”(ตัวที่ถัดจากเลข commit)
git restore file_b(ลบ file โดย คลิกขวาชื่อ file ใน vscode ใช้ git restore ดึง file กลับมา)
reset หลักๆมี 3 วิธี มีรูป
git rm file_b(ลบ file_b)
git branch ชื่อbranch --- สร้าง branch ชื่อbranch
git branch --- แสดง branch ทั้งหมด
git branch -d ชื่อbranch --- ลบ branch
git checkout -b ชื่อbranch --- สร้างและไปที่ branch ที่สร้างใหม่
git checkout ชื่อbranch --- ย้าย branch