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
ไม่มีความคิดเห็น:
แสดงความคิดเห็น