一、使用git branch来创建分支 使用场景:暂时没有体会 git branch - a 显示所有分支 git branch xx 创建xx分支 git checkout xx 切换到xx分支 git checkout - b xx 创建并切换到xx分支 二、使用git stash保存和恢复工作 ...
分类:
其他好文 时间:
2018-10-15 18:20:34
阅读次数:
112
git pull 提示 refusing to merge unrelated histories 解决方法:git pull --allow-unrelated-histories < 回车后会进入编辑页面,一般直接 q 退出即可 > To push the current branch and ...
分类:
其他好文 时间:
2018-10-14 13:58:48
阅读次数:
145
基本 Add commit reset 分支与合并 branch checkout bash git checkout [ q] [ f] [ m] [] git checkout [ q] [ f] [ m] detach [] git checkout [ q] [ f] [ m] [ deta ...
分类:
其他好文 时间:
2018-10-14 00:22:25
阅读次数:
205
1. 本地分支和远程分支 1>我们在本地创建分支,第一次push到远程是没有分支存在,执行git push 会有提示,按照提示的内容操作即可,当然我们也可以 git push origin feature-branch:feature-branch //推送本地的feature-branch(冒号前 ...
分类:
其他好文 时间:
2018-10-12 17:49:41
阅读次数:
188
window git下载: https://git-scm.com/download/ 代码管理工具作用 * 防止代码丢失,做备份 * 代码版本的管理,可以进行多个节点的备份,在多个版本 之间跳跃 * 可以方便的将代码在多人之间进行共享传输 * 多人开发时有各种模式可以方便代码管理 什么是git g ...
分类:
其他好文 时间:
2018-10-11 23:44:12
阅读次数:
246
Git 常用命令详解 Git 是一个很强大的分布式版本控制系统。它不但适用于管理大型开源软件的源代码,管理私人的文档和源代码也有很多优势。 1.Git文件操作 Git分支操作相关命令 Git远程分支管理 Git版本回退操作相关命令 Git标签操作相关命令 Git子模块(submodule)相关操作命 ...
分类:
其他好文 时间:
2018-10-11 19:03:52
阅读次数:
142
Description The branch of mathematics called number theory is about properties of numbers. One of the areas that has captured the interest of number t ...
分类:
其他好文 时间:
2018-10-10 20:11:26
阅读次数:
175
常用命令:1:jh55692@APACCNSHZJW3442 MINGW64 ~/redition/rendition (feature/June_09_2017/floatLeftMenu) $ git add WebApps/rendition/eppublic/akpublic/documen... ...
分类:
其他好文 时间:
2018-10-10 16:10:28
阅读次数:
192
https://blog.csdn.net/carfge/article/details/79691360 开始拉代码的操作链接 git branch -r 查看远程所有分支 git fetch origin 远程分支名x:本地分支名x 会创建本地分支,但是和远程分支没有映射关系 git branc ...
分类:
其他好文 时间:
2018-10-10 14:38:04
阅读次数:
232
简介 Gitflow工作流程围绕项目发布定义了严格的分支模型。尽管它比Feature Branch Workflow更复杂一些,但它也为管理更大规模的项目提供了坚实的框架。 与Feature Branch Workflow比起来,Gitflow流程并没有增加任何新的概念或命令。其特色在于,它为不同的 ...
分类:
其他好文 时间:
2018-10-10 14:36:07
阅读次数:
159