Last active
December 7, 2017 02:59
-
-
Save chokelive/1df9363750653169eedbab25fa40d37d to your computer and use it in GitHub Desktop.
คำสั่ง GIT ที่ใช้บ่อยๆ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git diff poomper