0
点赞
收藏
分享

微信扫一扫

Git常用笔记

Git

安装

 https://git-scm.com/downloads

常用命令

* git --version # 查看git版本
* 创建仓库
$ git init #初始化一个空的git本地仓库。执行完上面的命令,当前目录下会自动生成.git隐藏文件夹,该隐藏文件夹就是git版本库
* git命令提交代码
$ git clone #本地拉取该仓库,注意https换成git提高下载速率。
$ git checkout -b syg # 新建并且自动切换新的分支 syg
$ git pull # 更新repo 
举报

相关推荐

0 条评论