Note: การใช้งาน git

Posted by iClosedz On 9/01/2013 0 comments
บทความนี้ผมเขียนไว้เป็น Note ย่อของตัวเองเฉยๆนะครับ เพราะชอบลืม -"-

หลังสร้าง Git เสร็จแล้วให้ edit git files

.git/config

แล้วตรง url= แก้เป็น url=https://USERNAME@github.com/username/gitname.git

หรือ url=ssh://git@github.com/username/gitname.git

แล้วจากนั้นสั่ง git push origin master เพื่อให้ git sync your repo on GitHub


คำสั่ง git ทั่วไป

git status

git add . คือ แอดทุกไฟล์

git commit -a -m 'comment' คือ ให้ git commit -a คือคำสั่งเดียวกับ git add .

git push คือ อัพเดทไปที่ git server

ที่มา: http://stackoverflow.com/questions/7438313/pushing-to-git-returning-error-code-403-fatal-http-request-failed
READ MORE