`

What's Git?

阅读更多

参考: http://www.bitsun.com/documents/gittutorcn.htm

 

1. Git 是什么

Git 是一个版本控制工具,是用 Linux 内核开发的版本控制工具。

 

2. Git 与其他版本控制的最大差别

与常用的版本控制工具 CVS, Subversion 相比,Git 采用了分布式版本库的方式,不必服务器端软件支持,使源代码的发布和交流极其方便。

 

简单场景举例:当我们周末在家进行了代码修改后,如果用 SVN,SVN 的服务器在公司,此时在家便无法 commit,而使用 Git 则可以 commit。

 

3. Git 的优点

1) Git 的速度很快。

2) Git 具有出色的合并跟踪(merge tracing)能力。

3) Git 可以有效减少“仓库污染”。

当我们coding到一半,或者code尚未被自测调试通过,此时commit 到 SVN 等仓库时,可能会导致整个程序无法运行,如此便会影响他人工作,使用 Git,我们便可以随时commit 而不用担心此问题。

4) Git 对网络的依赖性较低。

非分布式的版本控制工具总是需要网络支持,当断网时我们便无法update、commit等,而 Git 则完美的支持我们在单机、脱机环境下仍然可以继续工作。)

 

分享到:
评论

相关推荐

    Professional.Git.epub

    Chapter 1: What Is Git? Chapter 2: Key Concepts Chapter 3: The Git Promotion Model Connected Lab 1: Installing Git PART II: USING GIT Chapter 4: Configuration and Setup Chapter 5: Getting Productive ...

    Git指令的Shell脚本

    (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: Git.sh modified: PyNote/PyNote_2.md no changes ...

    Git: Helper for the Open Source world

    例如,在“what’s cooking git”流程中,特定的维护者(如Junio)会负责建立新的特性分支,然后通过邮件列表进行讨论,最终合并到项目的主要分支。 总的来说,Git作为开源世界的重要助手,提供了一系列强大且灵活...

    Git.Mastering.Version.Control.pdf

    By exploring advanced Git practices, you will attain a deeper understanding of Git's behavior, allowing you to customize and extend existing recipes and write your own. This Learning Path is a blend...

    pro git_中文版.pdf

    Git is the version control ... Proprietary software developers will appreciate Git’s enormous scalability, since it is used for the Linux project, which comprises thousands of developers and testers.

    Git-2.21.0-64-bit.zip

    "git tag -s". * "git multi-pack-index" learned expire and repack subcommands. * "git blame" learned to "ignore" commits in the history, whose effects (as well as their presence) get ignored. *...

    Git使用规范

    git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset-%C(yellow)%d%Creset%s%Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit" ``` 4. 统一行为: - 每个Commit(提交...

    git internal

    with a section about what Git actually does, rather than how to use it. I found that I didn’t really understand Git and had many problems using it until I understood what it was actually doing at a ...

    Version Control with Git

    “时间线”可能提供了一个Git发展的时间表,而“What’s in a Name? Debian/Ubuntu”这一部分将可能讨论Git名称的由来及其与Debian和Ubuntu这样的Linux发行版之间的关系。 在安装和使用的部分,“安装Git”将指导...

    Git Internals-eng.pdf

    Perforce or whatever SCM system they are currently using, has heard good things about Git, but doesn’t know where to start or why it’s so wonderful. It is meant to explain Git as simply as possible...

    progit-en.935

    The first edition of this book is what got me hooked on Git. This was my introduction to a style of making software that felt more natural than anything I had seen before. I had been a developer for ...

    [Version Control with Git 2nd 2012 8 ] Jon Loeliger 文字版 pdf

    - **命名来源**:书中的“What’s in a Name?”章节探讨了Git名称背后的故事。Git之所以得名,据说是因为它的创造者希望有一个简洁明了的名字,并且能够表达出“快”(Git在英文中可以指“非常快”的意思)的概念。 ...

    hook-script-runner:使用npm自动运行您的Git钩子脚本

    快速开始在现有项目中安装Hook Script Runner模块: $ npm install --save-dev hook-script-runner 在您的package.json文件中添加一些命令: { "hooks": { "commit-msg": "echo 'What would Tim Pope do?'", "pre-...

    mybatis-3.4.2.pdf

    Sources of this manual are available in xdoc format at project's Git Fork the repository, update them and send a pull request. You’re the best author of this documentation, people like you have to ...

    Qt5 3D官方教程配套示例代码

    What's in Qt3D ================== Directory structure: src/threed/ This is the main library of the Qt3D project, containing abstractions for cross-platform GL, shaders, lighting models, and so on....

    The Full Stack Python Guide to Deployments

    Chapters Chapter 1: Introduction Chapter 2: Servers (Linode) Chapter 3: Operating Systems (Ubuntu) Chapter 4: Web Servers (Nginx) Chapter 5: Source control (Git) ...Chapter 11: What's Next?

    Daniel Arbuckle's Mastering Python【含代码】

    Use the Git version control system to protect your development environment from unwanted changes Harness the power of Python to automate other software Distribute computation tasks across multiple ...

Global site tag (gtag.js) - Google Analytics