Git สำหรับโปรแกรมเมอร์
$9.99
Minimum price
$15.99
Suggested price

Git สำหรับโปรแกรมเมอร์

About the Book

เมื่อก่อนผมเป็นคนหนึ่งที่เกิดข้อสงสัยในใจว่า git คืออะไร และมาช่วยให้งานมันง่ายขึ้นได้อย่างไร เพราะเท่าที่ดูแล้วมันจะต้องเรียนรู้เพิ่มและทำงานเพิ่มมากกว่าเดิม แต่หลังจากที่ผมใช้งาน git จนเข้าใจ ผมพูดได้คำเดียวว่า วันนี้ผมขาด git ไม่ได้สำหรับคนทีไม่เคยใช้โปรแกรมใดๆเข้ามาช่วยจัดการงานทางด้านควบคุม sourcecode เวลาจะแบ็กอัพงานทีนึ่ง ก็จะก้อปปี้งานทั้งโฟลเดอร์แล้วอาศัยตั้งชื่อเป็น วัน-เดือน-ปี เอา ของบางคนอาจจะเติมเวลาเข้าไปด้วย การทำอย่างนี้เหมือนจะเป็นประโยชน์ แต่โค้ดที่แบ็กอัพไว้หากจะให้เอากลับมาใช้งานจริงๆ ถามว่าจะมีสักกี่คนกล้าเอามันโยนขึ้นโปรดักชั่นได้โดยไม่ต้องกังวล  ส่วนใหญ่แล้วไม่กล้า สำหรับคนที่ใช้ git มันจะไม่มีปัญหาดังกล่าวข้างต้นเลย ผมอยากให้ดูภาพการใช้งานจริงของ git เพื่อเป็นการทำความเข้าใจว่าแท้จริงแล้ว git มันช่วยอะไรเราบ้าง

เก็บการเปลี่ยนแปลงของโค้ดทุกบรรทัด

รู้ได้ว่าโค้ดแต่ละบรรทัดใครเป็นคนแก้ มีประโยชน์อย่างมากเมื่อการเพิ่มโค้ดใหม่เข้าไป หรือแก้โค้ดเก่าแล้วเกิดบักขึ้น เมื่อเจอบรรทัดที่ก่อบักและรู้ว่าใครเป็นคนทำ เราสามารถถามเหตุผลการแก้โค้ดบรรทัดนั้นๆได้

สามารถทดสอบเขียนโค้ด โดยไม่ต้องกลัวโค้ดจะพังด้วยกระบวนการการแตก branch

รู้การเปลี่ยนแปลงของโค้ดทุกๆบรรทัด ทำให้ลดปัญหา "เราทำอะไรไปบ้างวะ" อีกทั้งสามารถยกเลิกการเปลี่ยนแปลงโค้ดได้อย่างง่ายดายเพียงแค่คลิกปุ่ม Discard ทุกอย่างก็กลับมาเหมือนเดิม

อีกหลายอย่าง เขียนอธิบายไว้ในหนังสือเล่มนี้แล้ว

About the Author

วัชรเมธน์ ชิษณุคุปต์ ศรีเนธิโรทัย
วัชรเมธน์ ชิษณุคุปต์ ศรีเนธิโรทัย

นับตั้งแต่วันที่ผมเข้าใจว่า Git ช่วยอะไรผมได้บ้าง มันก็ทำให้ชีวิตผม ชีวิตการเขียนโปรแกรม มีความสุขขึ้นมาก ผมไม่ต้องกลัวว่าโค้ดจะหาย ผมสามารถซิงก์โค้ดทั้งที่ทำงานและที่บ้านเป็นโค้ดชุดเดียวกัน โดยไม่ต้องก้อปปี้ใส่ธัมไดรฟ์ และอีกเยอะแยะ

Git ช่วยให้ผมมีความสุขครับ

Table of Contents

  • บทที่ 1 Overview
  • บทที่ 2 ติดตั้ง Git
    • ติดตั้ง Git SCM
    • ติดตั้ง Source Tree
    • เปิดใช้งาน source tree ครั้งแรก
    • Configuration
  • บทที่ 3 Working with Git Locally
    • สร้าง repository
    • ทดลองเล่น Git ครั้งแรก
    • Commit
    • Undo
    • Undo All
    • Show history
    • Ignore some file
  • บทที่ 4 Going remote
    • สมัคร bitbucket.org
    • สร้าง Repository บน bitbucket.org
    • Clonning ดึงโปรเจ็กมาลงเครื่องพัฒนา
    • Pushing เอาไฟล์ขึ้นไปเก็บที่ bitbucket
    • Pull ดึงไฟล์จาก bitbucket
  • บทที่ 5 Branch
    • การแตก branch
    • การสลับ branch
    • การลบ branch
    • การลบ branch วิธีที่ 2
    • การ merge branch
    • tag ความหมายและการใช้งาน
    • Stash วิธีการพักโค้ด
    • Apply โค้ดจาก Stash
    • การ Checkout โค้ด
  • บทที่ 6 คำสั่งอรรถประโยชน์
    • Amend Commit
    • export
      • export แบบ เจาะจง commit
      • คำสั่ง
      • คำอธิบาย
      • export แบบช่วงจาก commit นี้ไปถึง commit นี้
      • คำสั่ง
      • คำอธิบาย
  • บทที่ 7 bitbucket
    • สำรวจ bitbucket ว่ามีอะไรบ้าง
    • สร้างทีมสำหรับ dev
    • Issue tracking
      • เปิดใช้งาน Issue
      • สร้าง Issue
      • เปลี่ยนสถานะ Issue
      • การแก้ไข Issue
      • การแนบภาพประกอบ Issue
      • การลบ Issue
    • Hook
      • ให้ส่งอีเมล์อัตโนมัติเมื่อมีใคร push code เข้า repository
      • ให้ส่ง twitter อัตโนมัติเมื่อมีใคร push code เข้า repository
    • Wiki
      • เปิดใช้งาน Wiki

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub