Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

部分 II. Git - Fast Version Control System

distributed revision control system

目录

6. Repositories 仓库管理
6.1. initial setup
6.2. checkout
6.3. Creating and Commiting
6.4. Manager remote
6.5. Status
6.6. Diff
6.7. Cloning
6.8. Push
6.9. Pull
6.10. fetch
6.11. Creating a Patch
6.12. reset
7. Manipulating branches
7.1. list branches
7.2. create branches
7.3. delete branches
7.4. switch branch
7.5. git-show-branch - Show branches and their commits
8. Sharing Repositories with others
8.1. Setting up a git server
9. command
9.1. git-add - Add file contents to the index
9.2. git-status - Show the working tree status
9.3. git-commit - Record changes to the repository
9.4. git-show - Show various types of objects
9.5. git-checkout - Checkout and switch to a branch
9.5.1. checkout master
9.5.2. checkout branch
9.6. git config
10. git-daemon 服务器
10.1. git-daemon - A really simple server for git repositories
10.2. git-daemon-sysvinit
10.3. inet.conf / xinetd 方式启动
10.4. git-daemon-run
10.5. Testing
11. git-svn - Bidirectional operation between a single Subversion branch and git
12. .gitignore
13. gitolite - SSH-based gatekeeper for git repositories
13.1. gitolite-admin
13.1.1. gitolite.conf
13.1.1.1. staff
13.1.1.2. repo
14. Web Tools
14.1. viewgit
15. FAQ
15.1. 导出最后一次修改过的文件
15.2. 导出指定版本区间修改过的文件
15.3. fatal: The remote end hung up unexpectedly

homepage: http://git.or.cz/index.html

过程 4. Git

  1. install

    sudo apt-get install git-core
    			
  2. config

    			
    $ git-config --global user.name neo
    $ git-config --global user.email openunix@163.com
    			
    			
  3. Initializ

    $ mkdir repository
    $ cd repository/
    
    /repository$ git-init-db
    Initialized empty Git repository in .git/
    			

    to check .gitconfig file

    $ cat ~/.gitconfig
    [user]
            name = chen
            email = openunix@163.com
    			
comments powered by Disqus