Skip to content

Instantly share code, notes, and snippets.

@chokelive
Last active December 7, 2017 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chokelive/1df9363750653169eedbab25fa40d37d to your computer and use it in GitHub Desktop.
Save chokelive/1df9363750653169eedbab25fa40d37d to your computer and use it in GitHub Desktop.
คำสั่ง GIT ที่ใช้บ่อยๆ
git status - ดูว่ามีไฟล์อะไรเปลี่ยนแปลง
git diff <file name with path> - เปรียบเทียบว่ามีโคดบรรทัดไหนแตกต่างกันบ้าง
git add * - เพิ่มไล์ใหม่เข้า git ที่ local
git commit -m "ข้อความอธิบายการเปลี่ยนแปลง" - update ไฟล์เปลี่ยนแปลงเข้า GIT ที่ local
git push origin master - ส่งการเปลี่ยนแปลงเหล่านี้ ไปยัง remote repository
git clone https://url/project.git - ดึงโปรเจ็คใหม่มาไว้ที่เครื่อง
git log - ดู history การ commit
@poompergit
Copy link

git diff poomper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment