![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
Forget Star
这个作者很懒,什么都没留下…
展开
-
git 同步分支
当前有连个分支,master和dev,现在dev分支开发,需要将dev开发的代码添加到master分支。 1 切换到master分支 git checkout master 2 同步 git merge dev git merge dev 将dev分支合并到master分支(现在的分支) 3 push git push origin master ...原创 2020-06-04 19:11:12 · 572 阅读 · 0 评论 -
Git推送到远程仓库
打开终端 1 初始化git仓库 第一次需要创建git仓库。 git init 2 添加文件到缓存区 git add 文件名 //某个文件 git add . //所有文件 3 提交到版本库,加备注 提交到本地版本库,填写说明。 git commit -m "first commit" 4 关联远程版本库 第一次推送时关联。 git remote add origin https://github.com/自己的仓库地址/....git 5 推送到远程仓库 git push -u ori原创 2020-05-27 19:06:24 · 155 阅读 · 0 评论