![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
Cheryl71
这个作者很懒,什么都没留下…
展开
-
常见git命令
一. 克隆远程仓库代码①. `git clone https://gitee.com/daaayyy71/test.git`(默认仓库地址,克隆master)②. `git clone -b second https://gitee.com/daaayyy71/test.git`(second是指定分支名)二. 新建分支(third)并提交到远程仓库 1.新建分支 git branch third 2.把本地分支推送到远程 git push origin third原创 2021-01-06 11:51:12 · 771 阅读 · 1 评论 -
MacBook使用命令行上传文件到git
1.新建一个本地git仓库mkdir myGitStore2.初始化本地仓库git init 3.添加README.md文件git add README.md4.将 #“myStore” 写入readme文件echo "# myStore" >> README.md 5.提交文件到本地仓库,描述信息"first commit"git commit -m "first commit" 6.关联远程仓库git remote add origin HTTPS地址7.原创 2020-10-29 14:43:03 · 238 阅读 · 0 评论