摘要: 两个分支:主分支master,分支pre 1、将pre分支文件合并到master分支: 切换到master分支下操作: 合并文件夹【如果是文件则为a.text b.text】: git checkout pre a 将文件夹a添加到暂存区: git add a 将a文件夹提交到远程仓库: git c 阅读全文
posted @ 2018-07-25 18:26 红妆 阅读(1611) 评论(0) 推荐(0) 编辑
摘要: 1、将本地代码提交到远程仓库 【初始将文件修改上传到远程仓库】 初始化: git init 添加到暂存区: git add . 提交到仓库: git commit -m 'first commit' 关联到远程仓库: git remote add origin 远程仓库地址 获取远程仓库与本地仓库同 阅读全文
posted @ 2018-07-25 17:39 红妆 阅读(7914) 评论(0) 推荐(1) 编辑