Home | Mirror | Search

部分 II. Git – Fast Version Control System

distributed revision control system

目錄

6. Repositories and Branches
1. initial setup
2. Creating and Commiting
3. Manager remote
4. Status
5. Diff
6. Cloning
7. Push
8. Pull
9. fetch
10. Creating a Patch
7. Manipulating branches
1. list branches
2. create branches
3. delete branches
4. switch branch
5. git-show-branch - Show branches and their commits
8. Sharing Repositories with others
1. Setting up a git server
9. command
1. git-add - Add file contents to the index
2. git-status - Show the working tree status
3. git-commit - Record changes to the repository
4. git-show - Show various types of objects
5. git-checkout - Checkout and switch to a branch
5.1. checkout master
5.2. checkout branch
10. git-daemon - A really simple server for git repositories
1. inet.conf / xinetd
2. git-daemon-run
3. Testing
11. gitolite - SSH-based gatekeeper for git repositories
1. gitolite-admin
1.1. gitolite.conf
1.1.1. staff
1.1.2. repo
12. git-svn - Bidirectional operation between a single Subversion branch and git
13. .gitignore
14. Web Tools
1. GitLab
2. viewgit

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

過程 2. 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