git 主要命令

git clone coding地址 //下载代码并快速合并       !!注意:目录不能为中文
git init 初始化
git status 查看未提交代码
git add . 添加当前目录所有文件到缓存区
git config --global user.email "1055971150@qq.com"
git config --global user.name "xueshikang"
git commit -m "注释" 提交代码到本地
git push origin master(featrue) 上传代码到coding
git pull origin master 拉取master更新代码
git branch 分支 从master切一个分支出来
git checkout 分支 转换分支
git merge --no-ff 分支名 合并分支

posted @ 2017-08-31 16:53  日出东海落西山  阅读(90)  评论(0编辑  收藏  举报