万本电子书0元读

万本电子书0元读

顶部广告

Git Essentials电子书

售       价:¥

8人正在读 | 0人评论 9.8

作       者:Ferdinando Santacroce

出  版  社:Packt Publishing

出版时间:2015-04-28

字       数:164.3万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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.
目录展开

Git Essentials

Table of Contents

Git Essentials

Credits

Foreword

Foreword

Foreword

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Errata

Piracy

Questions

1. Getting Started with Git

Installing Git

Running our first Git command

Setting up a new repository

Adding a file

Commit the added file

Modify a committed file

Summary

2. Git Fundamentals – Working Locally

Repository structure and file status life cycle

The working directory

File statuses

The staging area

Unstaging a file

The time metaphor

The past

The present

The future

Working with repositories

Unstaging a file

Viewing the history

Anatomy of a commit

The commit snapshot

The commit hash

Author, e-mail, and date

Commit messages

Committing a bunch of files

Ignoring some files and folders by default

Highlighting an important commit – Git tags

Taking another way – Git branching

Anatomy of branches

Looking at the current branches

Creating a new branch

Switching from branch to branch

Understanding what happens under the hood

A bird's eye view to branches

Typing is boring – Git aliases

Merging branches

Merge is not the end of the branch

Exercises

Exercise 2.1

What you will learn

Scenario

Results

Exercise 2.2

What you will learn

Scenario

Results

Deal with branches' modifications

Diffing branches

Using a visual diff tool

Resolving merge conflicts

Edit collisions

Resolving a removed file conflict

Keeping the edited file

Resolving conflicts by removing the file

Stashing

Summary

3. Git Fundamentals – Working Remotely

Working with remotes

Setting up a new GitHub account

Cloning a repository

Uploading modifications to remotes

What do I send to the remote when I push?

Pushing a new branch to the remote

The origin

Tracking branches

Downloading remote changes

Checking for modifications and downloading them

Applying downloaded changes

Going backward: publish a local repository to GitHub

Adding a remote to a local repository

Pushing a local branch to a remote repository

Social coding – collaborate using GitHub

Forking a repository

Submitting pull requests

Creating a pull request

Summary

4. Git Fundamentals – Niche Concepts, Configurations, and Commands

Dissecting the Git configuration

Configuration architecture

Configuration levels

System level

Global level

Repository level

Listing configurations

Editing configuration files manually

Setting up other environment configurations

Basic configurations

Typos autocorrection

Push default

Defining the default editor

Other configurations

Git aliases

Shortcuts to common commands

Creating commands

git unstage

git undo

git last

git difflast

Advanced aliases with external commands

Removing an alias

Aliasing the git command itself

Git references

Symbolic references

Ancestry references

The first parent

The second parent

World-wide techniques

Changing the last commit message

Tracing changes in a file

Cherry picking

Tricks

Bare repositories

Converting a regular repository to a bare one

Backup repositories

Archiving the repository

Bundling the repository

Summary

5. Obtaining the Most – Good Commits and Workflows

The art of committing

Building the right commit

Make only one change per commit

Split up features and tasks

Write commit messages before starting to code

Include the whole change in one commit

Describe the change, not what you have done

Don't be afraid to commit

Isolate meaningless commits

The perfect commit message

Writing a meaningful subject

Adding bulleted details lines, when needed

Tie other useful information

Special messages for releases

Conclusions

Adopting a workflow – a wise act

Centralized workflows

How they work

Feature branch workflow

GitFlow

The master branch

Hotfixes branches

The develop branch

The release branch

The feature branches

Conclusion

The GitHub flow

Anything in the master branch is deployable

Creating descriptive branches off of the master

Pushing to named branches constantly

Opening a pull request at any time

Merging only after a pull request review

Deploying immediately after review

Conclusions

Other workflows

The Linux kernel workflow

Summary

6. Migrating to Git

Before starting

Prerequisites

Working on a Subversion repository using Git

Creating a local Subversion repository

Checking out the Subversion repository with svn client

Cloning a Subversion repository from Git

Setting up a local Subversion server

Adding a tag and a branch

Committing a file to Subversion using Git as a client

Using Git with a Subversion repository

Migrating a Subversion repository

Retrieving the list of Subversion users

Cloning the Subversion repository

Preserving the ignored file list

Pushing to a local bare Git repository

Arranging branches and tags

Renaming the trunk branch to master

Converting Subversion tags to Git tags

Pushing the local repository to a remote

Comparing Git and Subversion commands

Summary

7. Git Resources

Git GUI clients

Windows

Git GUI

TortoiseGit

GitHub for Windows

Atlassian SourceTree

Cmder

Mac OS X

Linux

Building up a personal Git server with web interface

The SCM Manager

Learning Git in a visual manner

Git on the Internet

Git community on Google+

GitMinutes and Thomas Ferris Nicolaisen's blog

Ferdinando Santacroce's blog

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部