+ + + +常用 Git 命令清单
+
我每天使用 Git ,但是很多命令记不住。
+一般来说,日常使用只要记住下图6个命令,就可以了。但是熟练使用,恐怕要记住60~100个命令。
+ +下面是我整理的常用 Git 命令清单。几个专用名词的译名如下。
+-
+
- Workspace:工作区 +
- Index / Stage:暂存区 +
- Repository:仓库区(或本地仓库) +
- Remote:远程仓库 +
一、新建代码库
|
二、配置
Git的设置文件为.gitconfig
,它可以在用户主目录下(全局配置),也可以在项目目录下(项目配置)。
|
三、增加/删除文件
|
四、代码提交
|
五、分支
|
六、标签
|
七、查看信息
|
八、远程同步
|
九、撤销
|
十、其他
|
(完)
+ + + + + + +-
+
- + 本文作者: + Alex guo + +
- + 本文链接: + https://www.goroutine.cn/2018/02/21/git/ + + +
- + 版权声明: + + 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处! + + +