Fun With Git

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Fun With Git - Presentation Transcript

    1. ทำงานสนุก เปลี่ยนได้ตามใจ งานไม่เละ @domesterz
      • Version Control ชนิดหนึ่ง ?
      • ดีกว่าตัวอื่นยังไงหรอ ?
      • ใช้แล้วชีวิตดีขึ้นยังไง ?
      • แก้ไฟล์ไปแล้วมีปัญหา อยากย้อนกลับแต่ก็จำไม่ได้ แถมลืมแบ็คอัพอีกตะหาก ?
      • อยากจะแก้ไฟล์ แต่ก็กลัวว่าทำไปแล้วจะทำระบบล้ม ?
      • แบ็คอัพไฟล์ไปไว้อีกโฟลเดอร์หนึ่ง พอมันเสียก็คัดลอกแล้วนำไปแปะไว้บนโฟลเดอร์เดิม ?
      • ฯลฯ
      • สำหรับ Windows ไปดาวโหลดได้เลยที่ http://code.google.com/p/msysgit/
      • สำหรับ Macs ไปดาวโหลดได้เลยที่ http://code.google.com/p/git-osx-installer/
      • สำหรับ Linux ไปดาวโหลดได้เลยที่ http://git-scm.com/
    2.  
      • git init // เริ่มต้นโปรเจค
      • คอมโบย้อนกลับเมื่อเราพลาด commit ไปแล้ว git log --pretty=oneline // ดู Log git reset --hard hashname // ย้อนกลับ
      • เพิ่มข้อมูล แล้ว commit git add . // เพิ่มข้อมูลจากตำแหน่งนี้ git commit -m "Comment“ // commit แล้วใส่ comment
      • สร้าง Branch แล้วไปที่ Branch git branch branchname // สร้าง Branch ถ้าใช้ – D คือลบ Branch git checkout branchname // เปลี่ยนไปยัง Branch นั้นๆ
      • git status // ตรวจสอบสถานะ ปัจจุบัน
      • git merge branchname // รวมกับ Branch อื่น
      • git help gitcommand // ดู help ของ command ต่างๆ
    3. โดม (DominixZ) twitter: domesterz [email_address] http://www.dominixz.com

    + Warodom DansuwandumrongWarodom Dansuwandumrong, 6 months ago

    custom

    207 views, 0 favs, 0 embeds more stats

    ใช้ GIT ง่ายๆในเครื่ more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 207
      • 207 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 5
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories