Git教程

  1. 安装
  2. 设置
    $ git config --global user.name "Your Name"
    $ git config --global user.email "[email protected]"
  3. 创建版本库并提交
    $ mkdir learngit
    $ cd learngit
    $ pwd
    /Users/michael/learngit  $ git init
    Initialized empty Git repository in /Users/michael/learngit/.git/
    $ git add readme.txt
    
       
       
       
       
    
       
    
       
       
        
        
        
        
    $ git commit -m "wrote a readme file" [master (root-commit) cb926e7] wrote a readme file  1 file changed, 2 insertions(+)  create mode 100644 readme.txt
  4. 1
  5. 1
  6. 1
  7. 1

你可能感兴趣的:(Git教程)