วิธีการตั้งชื่อ
เลียบแบบจาก wordpress https://github.com/wordpress-mobile
วิธีการสร้าง repo ใหม่
คำสั่ง
- mkdir lostcar-android // สร้าง directory สำหรับเก็บ source code
- cd lostcar-android
- git init
- touch README.md // สร้างไฟล์
- git add README.md
- git commit -m "First commit"
- git remote add origin http://172.17.17.155/asisunyapoth/lostcar-android.git / เวลาระบุ remote ให้ระบุเป็น URL มิเช่นนั้นจะระบุ login / password ไม่ได้ หรือไม่ผ่าน
- ก่อน push เช็คอีกทีโดยใช้ git status ได้
- git push -u origin master
วิธีการ update ข้อมูลบน repo
คำสั่ง
- git checkout -b develop
- git push -u origin develop