系统:Windows7+git
Git下载(Windows版-2.13.1):http://msysgit.github.iogithub
Git图形界面根据我的习惯选择,推荐如下Git图形界面工具:服务器
SmartGit:http://www.syntevo.com/smartgit/downloadapp
SourceTree:https://www.sourcetreeapp.com/工具
命令url |
简要说明spa |
git clone [url]日志 |
克隆版本库get |
git add [filename]it |
添加文件至暂存区 |
git commit -m “消息” |
提交到本地Git仓库 |
git pull |
拉回远程版本库的提交 |
git push |
推送至远程Git仓库 |
git branch |
列出全部分支 |
git branch [branchname] |
建立分支 |
git checkout [branchname] |
检出到工做区、切换 |
git branch -d [branchname] |
删除分支 |
git clean |
清除工做区未跟踪文件 |
git log |
显示提交日志 |
git merge [branchname] |
分支合并 |
git tag -a [tagname] -m ‘描述’ |
建立标签 |
git tag |
获取标签 |
git tag -d [tagname] |
删除标签 |
git checkout [tagname] |
切换到标签 |
git push origin [tagname] |
提交标签到git远程服务器 |