git命令

Posted on 2016-06-17 15:14  Fhj888  阅读(134)  评论(0编辑  收藏  举报

查状态
查看状态:git status 
 
暂存
添加至暂存区:git add <file>  
 
 
commit
commit暂存区内容:git commit -m “描述”
commit 所有修改的文件到暂存区:  git commit -am “描述”
 
PUSH
 PUSH代码: git push 根 当前分支
 
 
分支
获取所有分支:git branch -a 
 
 
Check out 
git checkout +文件名  
 
克隆
git clone 网址