Git Essentials (Paperback)

Ferdinando Santacroce

  • 出版商: Packt Publishing
  • 出版日期: 2015-04-30
  • 售價: $1,180
  • 貴賓價: 9.5$1,121
  • 語言: 英文
  • 頁數: 146
  • 裝訂: Paperback
  • ISBN: 1785287907
  • ISBN-13: 9781785287909
  • 相關分類: Version Control
  • 下單後立即進貨 (約3~4週)




Create, merge, and distribute code with Git, the most powerful and flexible versioning system available

About This Book

  • Master all the basic concepts of Git to protect your code and make it easier to evolve
  • Use Git proficiently, and learn how to resolve day-by-day tasks easily
  • A step-by-step guide, packed with examples to help you learn and work with Git internals

Who This Book Is For

If you are a software developer with little or no experience of versioning systems, or are familiar with other centralized versioning systems, then this book is for you. If you have some experience working with command lines or using Linux admin or just using Unix and want to know more about Git, then this book is ideal for you.

What You Will Learn

  • Create, branch, and merge a local repository
  • Transport your work to a remote repository working in a centralized manner
  • Organize your source code using feature branches
  • Organize the development flow
  • Get a meaningful changelog using clear commit messages
  • Collaborate with teammates without any impediments
  • Experiment with your code without affecting functional code files
  • Explore some tools used to migrate to Git from other versioning systems without losing your development history
  • Extend your knowledge of Git with some useful resources

In Detail

Since its inception, Git has attracted skilled developers due to its robust, powerful, and reliable features. Its incredibly fast branching ability transformed a piece of code from a niche tool for former Linux Kernel developers into a mainstream distributed versioning system. Like most powerful tools, Git can be hard to approach since it has a lot of commands, subcommands, and options that easily confuse newcomers. The main purpose of Git Essentials is to help you overcome this fear and become adept at all basic tasks in Git. This book starts with an introduction to version control systems, and after this you'll delve deeply into the essentials of Git. This serves as a primer for the topics to follow such as branching and merging, creating and managing a GitHub personal repository, and fork and pull requests. You will then learn the art of cherry-picking, taking only commits you like, followed by Git blame. Finally, you'll learn how to migrate from SVN using Git tools or TortoiseGit and migrate from other VCSs, concluding with a collection of resources, links, and appendices.




  • 掌握Git的所有基本概念,保護代碼並使其更容易演進

  • 熟練使用Git,並學習如何輕鬆解決日常任務

  • 一本逐步指南,充滿了示例,幫助您學習和使用Git的內部結構




  • 創建、分支和合併本地存儲庫

  • 以集中式方式將您的工作傳輸到遠程存儲庫

  • 使用功能分支組織您的源代碼

  • 組織開發流程

  • 使用清晰的提交消息獲得有意義的更改日誌

  • 與團隊成員合作,無任何障礙

  • 在不影響功能代碼文件的情況下對代碼進行實驗

  • 探索一些用於從其他版本控制系統遷移到Git的工具,而不會丟失開發歷史

  • 通過一些有用的資源擴展您對Git的知識


自Git誕生以來,由於其強大、可靠的功能,吸引了許多熟練的開發人員。它極快的分支能力將一段代碼從前Linux內核開發人員的專用工具轉變為主流的分散式版本控制系統。像大多數強大的工具一樣,Git可能很難接近,因為它有很多命令、子命令和選項,容易讓新手感到困惑。《Git基礎知識》的主要目的是幫助您克服這種恐懼,並熟練掌握Git的所有基本任務。本書從版本控制系統的介紹開始,然後深入探討Git的基本要素。這將作為接下來的主題的入門,例如分支和合併,創建和管理GitHub個人存儲庫,以及分叉和拉取請求。然後,您將學習挑選櫻桃的藝術,只選擇您喜歡的提交,然後是Git blame。最後,您將學習如何使用Git工具或TortoiseGit從SVN遷移,以及從其他版本控制系統遷移,並附有一些資源、鏈接和附錄。