学习廖雪峰老师的Git教程的笔记,以供自己以后复习查看。 ★★★★★ 创建、合并、删除分支。 ★创建分支 git branch branchName --------创建分支 git checkout branchName -----切换到分支 上面两条命令可以合并为:git checkout -b... ...
分类:
其他好文 时间:
2017-01-18 00:41:31
阅读次数:
150
1、查看分支:git branch 命令会列出所有分支,当前分支前面会标一个*号 2、创建分支:git branch <name> 3、切换分支:git checkout <name> 4、创建+切换分支:git checkout -b <name> 现在开始,对工作区的修改和提交就是针对dev分支 ...
分类:
其他好文 时间:
2017-01-17 21:36:33
阅读次数:
200
1. Check out the branch you wish to merge to. Usually, you will merge into master. 2. Pull the desired branch from the upstream repository. This metho ...
分类:
其他好文 时间:
2017-01-16 22:41:11
阅读次数:
214
1:每次开发新功能时,都应该新建立一个独立的分支(branch),整个项目工程有且只有一个主分支(master branch),项目发版时是从主分支上发布。 Step01:切换到主分支 $ git checkout master Step02:查看当前分支信息 $ git branch Step03 ...
分类:
其他好文 时间:
2017-01-15 14:48:34
阅读次数:
163
命令如下: 1:本地创建分支dev 2:下面是把本地分支提交到远程仓库 3:查看一下远程仓库有几个分支 这篇博文比较全面:推荐一下http://blog.csdn.net/arkblue/article/details/9568249/ ...
分类:
其他好文 时间:
2017-01-14 15:45:30
阅读次数:
183
在远程服务器如:/var/www下创建hello.git 然后git init --bare hello.git cd hello.git会看到下面的目录和文件 然后创建可以访问git的用户 git config --global user.name "name" 例如:json git confi ...
分类:
其他好文 时间:
2017-01-13 07:50:06
阅读次数:
147
select_all function of jstree not checked node for jstree-open branch of ajax-jstree 很尴尬啊,找了整个百度,360 整个中国网居然没有栗子,解决办法, google就是强大 up vote 1 down vote ...
分类:
Web程序 时间:
2017-01-12 09:32:28
阅读次数:
248
Source code control 一直是软件开发过程中重要的环节,从最初的纯文件备份,到使用工具进行管理。Source code control 工具的作用也不仅仅只是单纯的对同一个版本进行管理了。从目前主流的source code control工具当中不难发现里面的Branch, tag等 ...
分类:
其他好文 时间:
2017-01-09 17:52:46
阅读次数:
296
作为一个开发员,源码的管理是一个头等大事来的,想象一下,修改完成却发现文件丢失了,该怎么办?有了源代码管理工具,能够帮助我们查看某个代码文件的修改内存及历史修改记录。 作为.Net开发员,我使用过VSS,GitHub作为源代码管理器 1.VSS:早期的VS2005等代码都是存放于VSS上的,作为微软 ...
分类:
其他好文 时间:
2017-01-09 11:33:39
阅读次数:
196
C:\Users\Administrator>git config -l core.symlinks=false core.autocrlf=true core.fscache=true color.diff=auto color.status=auto color.branch=auto colo... ...
分类:
其他好文 时间:
2017-01-08 22:42:17
阅读次数:
230