Version Control with Git doc

330 822 0
Version Control with Git doc

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... pulling in all Git tools git- arch.i386 Git tools for importing Arch repositories git- cvs.i386 Git tools for importing CVS repositories git- daemon.i386 The Git protocol daemon 8 | Chapter 2: Installing Git git-debuginfo.i386 Debug information for package Git git-email.i386 Git tools for sending email git- gui.i386 Git GUI tool git- svn.i386 Git tools for importing Subversion repositories gitk.i386 Git revision... provide a package named git, but it isn’t a part of the Git version control system discussed in this book git is a completely different program called GNU Interactive Tools Be careful not to install the wrong package by accident! This command installs the important Git packages by running apt-get as the root: $ sudo apt-get install git- core git- doc gitweb \ git- gui gitk git- email git- svn Other Binary... book work equally well on Linux and Windows, with one caveat: msysGit for Windows uses the older Git command names mentioned in “The Git Command Line” on page 17 To follow the examples with msysGit, enter git- add for git add Installing Git on Windows | 15 CHAPTER 3 Getting Started Git manages change Given that intent, Git shares much with other version control systems Many tenets—the notion of a commit,... However, Git offers many novelties, too The notions and practices of other version control systems may work differently in Git or may not apply at all Yet, no matter what your experience, this book explains how Git works and teaches mastery Let’s get started The Git Command Line Git is simple to use Just type git Without any arguments, Git lists its options and the most common subcommands: $ git git [ version] ... systems, Git is offered as a collection of packages, where each package can be installed independently depending on your needs The primary Git package is called git- core, documentation is available in git- doc, and there are other packages to consider, too: git- arch, git- cvs, git- svn If you need to transfer a project from Arch, CVS, or Subversion to Git or vice versa, install one or more of these packages git- gui,... verify a tag object signed with GPG For a complete (and somewhat daunting) list of git subcommands, type git help all As you can see from the usage hint, a small handful of options apply to git Most options, shown as [ARGS] in the hint, apply to specific subcommands For example, the option version affects the git command and produces a version number: $ git version git version 1.6.0 In contrast,... careful to avoid version mismatch problems if you choose to go this route A build from source includes all the Git subpackages and commands, such as git- email and gitk There is no need to build or install those utilities independently Installing Git on Windows There are two competing Git packages for Windows: a Cygwin-based Git and a “native” version called msysGit Originally, only the Cygwin version was... version was supported and msysGit was experimental and unstable But as this book went to press, both versions work well and support an almost identical set of features The most important exception, as of Git 1.6.0, is that msysGit does not yet properly support git- svn If you need interoperability between Git and Subversion, you must use the Cygwin version of Git Otherwise, the version you choose is a matter... Subprojects with git pull -s subtree Submitting Your Changes Upstream The Automated Solution: Checking Out Subprojects Using Custom Scripts The Native Solution: gitlinks and git submodule gitlinks The git submodule Command 266 267 269 269 273 274 275 276 278 16 Using Git with Subversion Repositories 283 Example: A Shallow Clone of a Single Branch Making Your Changes in Git. .. Git release among many different packages If your system lacks a particular Git command, you may need to install an additional package Be sure to verify that your distribution’s Git packages are sufficiently up-to-date After Git is installed on your system, run git version If your collaborators use a more modern version of Git, you may have to replace your distribution’s precompiled Git packages with . alt="" Version Control with Git Version Control with Git Jon Loeliger Beijing • Cambridge • Farnham • Köln • Sebastopol • Taipei • Tokyo Version Control with. of the git diff Command 106 Simple git diff Example 110 git diff and Commit Ranges 113 git diff with Path Limiting 116 Comparing How Subversion and Git Derive

Ngày đăng: 22/03/2014, 21:20

Mục lục

  • Table of Contents

  • Preface

    • Audience

    • Assumed Framework

    • Book Layout and Omissions

    • Conventions Used in This Book

    • Using Code Examples

    • Safari® Books Online

    • How to Contact Us

    • Acknowledgments

    • Chapter 1. Introduction

      • Background

      • The Birth of Git

      • Precedents

      • Time Line

      • What’s in a Name?

      • Chapter 2. Installing Git

        • Using Linux Binary Distributions

          • Debian/Ubuntu

          • Other Binary Distributions

          • Obtaining a Source Release

          • Building and Installing

          • Installing Git on Windows

            • Installing the Cygwin Git Package

            • Installing Standalone Git (msysGit)

Tài liệu cùng người dùng

Tài liệu liên quan