Category:version control’
ปัญหา git push แล้วเกิด [user/repo2 denied to user/repo1]
- by NAzT
error แบบนี้
หาในเครื่องตั้งนาน ว่ามันไปอ่าน config มาจากไหน ที่ไหนทางฝั่ง github น่าจะเกิดตอน ติดตั้ง github for mac
เริ่มต้นใช้ git (version control) อย่างง่ายๆ ด้วย git-gui
- by NAzT
git เป็น version control ที่เอาไว้จัดการ code ของเรา คอย track เราว่าเขียนอะไรไปบ้าง แก้ไขอะไรไปบ้าง น่ะครับ
จริงๆแล้ว ก็เขียนเชียร์ git ไปหลายครั้ง Read this article »
คำแนะนำ และเครื่องมือแนะนำ สำหรับการทำ โปรเจ็คจบ/Senior project/Special Topic
- by NAzT
จะเกิดอะไรขึ้นเมื่อถึงเวลาที่ใกล้ส่งโปรเจคจบ แล้วเครื่องพัง เครื่องหาย หรือระเบิดไปต่อหน้าต่อตา…
ไม่ว่าใครก็ต้องช็อคโลกแน่ ถ้าไม่มีโปเจคไป present
Version Control มันดียังไงๆๆๆ (ผมใช้ git นะ)
- by Nat
Git คืออะไร ไปหาคำตอบได้จากตอน มาลอง พัฒนา Application ร่วมกับ Git กันเถอะ (1) แล้ว Git ดียังไง ผมเอา senior project ที่ github มาโชว์ละกัน Read this article »
github กับ rsa public/private key (git push)
- by Nat
ล้างเครื่องใหม่ จะ set git ให้ push ได้ต้องหาคำสั่งให้วุ่น (ก็มันจำไม่ได้นีนา) เลยขอรวมไว้หน่อยละกัน Read this article »
มาลอง พัฒนา Application ร่วมกับ Git กันเถอะ (1)
- by NAzT
Git คืออะไร ? ว่าง่ายๆ Git ก็คือ opensource ที่ใช้เป็น version control system นั่นแหละครับ หรือ นิยามเต็มๆ ก็คือ
Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Every Git clone is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server.Branching and merging are fast and easy to do. Git is used for version control of files, much like tools such as Mercurial, Bazaar, Subversion, CVS, Perforce, andVisual SourceSafe. อ้างจาก http://git-scm.com/
พอพูดถึงนิยามไปแล้ว เรามาลองใช้ git กันเลยดีกว่า
- เราต้องติดตั้ง git ก่อน (Download and install Git )
- ทดลองสร้าง Directory หรือไฟล์ ดังนี้ $ mkdir ProjectName $ cd ProjectName $ touch README
- สั่ง git init เพื่อสร้าง repository $ git init
- เมื่อสร้างไฟล์ใดๆแล้วให้สั่ง git add ชื่อไฟล์ หรือถ้าต้องการ add ทั้งหมดก็สั่ง git add . ได้เลย $ git add .
- เมื่อทำอะไรเรียบร้อยแล้วก็ต้องยืนยันการกระทำโดยสั่ง git commit -m ‘COMMENT’ $ git commit -m ‘First Commit README added)
- ถ้าต้องการสร้าง branch ใหม่ก็สั่ง git branch branchname $ git branch newbranch
- ต้องการ switch branch ก็สั่ง git check branchname $ git checkout newbranch $ git branch
ตามไปดู ตัวอย่างการใช้งานจริงได้ที่ VDO การพัฒนา Grails application ร่วมกับ Git เพื่อเพิ่ม productivity ก็ได้คร้าบบ
คราวหน้ามาพูดถึง github กันครับ
