วิธีที่ถูกต้องคืออะไร?
git add foo.js
git commit foo.js -m "commit"
git pull
git push
หรือ
git pull
git add foo.js
git commit foo.js -m "commit"
git push
หรือ
git add foo.js
git pull
git commit foo.js -m "commit"
git push
UPD:
ฉันลืมพูดไปว่าในกรณีนี้ฉันใช้git addเพื่อจัดลำดับไฟล์ที่ติดตามและแก้ไข ไม่รวมไฟล์ใหม่เอี่ยมไปยังที่เก็บ สิ่งนี้เปลี่ยนลำดับของคำสั่งหรือไม่?