git note

1) cd workspace

2) git clone +project path

3) git add <folder or file name>

4) git status

5) git commit

6) i 进入输入状态

7) esc ,: 退出输入状态
    wq 保存并退出

8) cat 查看对象内容
   cat .git/HEAD 查看当前路径
   cat .git/refs/heads/master

9) git catch-file -t 查看文件类型

10)git branch
    git checkout

11) git mv index.html hello.html 文件重命名与移动

12) git branch -m master mymaster 分支的重命名

猜你喜欢

转载自jackleechina.iteye.com/blog/1858961