kanakorn.h
git คือ distributed revision control system
เรามักใช้ github.com สำหรับเก็บ source code แต่มัน public ซึ่ง บางทีเราก็ต้องการอะไรที่ private
ต่อไปนี้ คือวิธีการใช้งาน Google Drive เพื่อสร้าง Private Git Repository
git init
เพื่อสร้าง .git ใน Directory นี้ก่อน จากนั้นใช้คำสั่งนี้ ที่มี –bare เพื่อสร้าง Remore Repository บน Google Drive
git init --bare "G:\My Drive\git\fmsworkshop.git"
git add . git commit -m "some text" git push "G:\My Drive\git\fmsworkshop.git"
หวังว่าจะเป็นประโยชน์ครับ