Git -How to commit source code
1 min readOct 3, 2018
หลังจากที่เราเขียน หรือแก้ไข Source code
สามารถ Commit ไปที่ Branch โดยเปิด Terminal และทำตาม Step ดังนี้
Step1 Git Add
- กรณีที่อยาก Add แค่ไฟล์เดียว
git add file.text
- กรณีที่อยาก Add ทั้ง Folder
git add --all folder/
Step2 Git Commit
git commit -m ‘text comment’
Step3 Git Push
git push