Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | Email

部分 II. Git - Fast Version Control System

distributed revision control system

目录

4. Repositories 仓库管理
4.1. initial setup
4.2. checkout
4.3. Creating and Commiting
4.4. Manager remote
4.5. Status
4.6. Diff
4.7. Cloning
4.8. Push
4.9. Pull
4.10. fetch
4.11. Creating a Patch
4.12. reset
5. Manipulating branches
5.1. list branches
5.2. create branches
5.3. delete branches
5.4. switch branch
5.5. git-show-branch - Show branches and their commits
6. Sharing Repositories with others
6.1. Setting up a git server
7. command
7.1. git-add - Add file contents to the index
7.2. git-status - Show the working tree status
7.3. git-commit - Record changes to the repository
7.4. git-show - Show various types of objects
7.5. git-checkout - Checkout and switch to a branch
7.5.1. checkout master
7.5.2. checkout branch
7.6. git config
8. git-daemon 服务器
8.1. git-daemon - A really simple server for git repositories
8.2. git-daemon-sysvinit
8.3. inet.conf / xinetd 方式启动
8.4. git-daemon-run
8.5. Testing
9. git-svn - Bidirectional operation between a single Subversion branch and git
10. .gitignore
11. gitolite - SSH-based gatekeeper for git repositories
11.1. gitolite-admin
11.1.1. gitolite.conf
11.1.1.1. staff
11.1.1.2. repo
12. Web Tools
12.1. viewgit

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