March 23, 2020
Initializing a repository - การเริ่มต้นใช้งาน git ใน folder ที่สั่ง git init
โดยจะมีการสร้าง Folder .git ขึ้นมาเพื่อเก็บ file ที่เก็บรายละเอียด สถานะของ git
file(s)
เพิ่มไฟล์เข้าไปใน git index เพื่อให้สามารถ track การเปลี่ยนแปลงของไฟล์นั้นๆ ได้
message
บันทึก “ข้อความ” ที่บอกการเปลี่ยนแปลงของ repo
remote
branch
อัพเดท Remote (อัพเดทข้อมูลไฟล์ไปยัง github หรือ gitlab)
remote
branch
ดึงข้อมูลจาก Repo มาที่ Local
git rm -r --cached some-directory
git commit -m 'Remove Ignore File On Remote'
git push origin master