Written by
in
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"
หวังว่าจะเป็นประโยชน์ครับ
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Δ
Leave a Reply