Git实用小工具
一、GIT简介
二、GIT安装
三、创建版本库
四、时光机窜梭
五、远程仓库
目的 | 命令 | 返回结果 | 备注 |
---|---|---|---|
查看远程仓库状态 | git remote -v | 远程仓库本地的名字 远程仓库的git链接 |
六、分支管理
目的 | 命令 | 返回结果 | 备注 |
---|---|---|---|
创建分支 | git checkout -b dev git branch <branch_name> | ||
查看分支 | git branch | – | – |
查看分支,包括远程分支 | git branch -av | – | – |
七、标签管理
八、使用gitlab
九、使用gitee
十、自定义Git
十一、使用Source Tree
十二、Git开发流程
目的 | 命令 | 返回结果 | 备注 |
---|---|---|---|
初始化仓库 | git init | 也可以用Github某个仓库中自带的.git | |
将文件添加进暂存仓 | git add . | – | – |
将文件提交字本地仓 | git commit -m "<your_description>" | ||
将文件提交至远程仓库 | git push -u <local_remote_name> <remote_branch_name> | – | – |