ll qans; // 记录答案 int date[maxn]; // 数据数组 int tarray[maxn]; // 归并排序的中间数组 // POJ - 2299 SGU - 180 void merge(int arr[], int left, int right, int tarr[]) ...
分类:
编程语言 时间:
2018-07-21 19:53:17
阅读次数:
164
kdiff3是个优秀的图像化代码比较与合并工具,安装也十分容易: sudo apt-get install kdiff3 git config --global merge.tool kdiff3 安装完成。 遇到代码要手动合并的时候,输入 git mergetool 即可打开图形化合并工具。 ...
分类:
系统相关 时间:
2018-07-20 19:04:18
阅读次数:
505
git reset & git revert 区别: 1. git revert是用一次新的commit来回滚之前的commit,git reset是直接删除指定的commit。 2. 在回滚这一操作上看,效果差不多。但是在日后继续merge以前的老版本时有区别。因为git revert是用一次逆向 ...
分类:
其他好文 时间:
2018-07-20 18:06:31
阅读次数:
192
一般每个开发者都会有个自己的分支,有个test分支,合并代码用,两条分支相互备份,就算merge的时候被覆盖,也不用担心 建立自己的分支 把自己分支 dev_slh的东西合并到test分支 ...
分类:
其他好文 时间:
2018-07-20 11:30:41
阅读次数:
130
Git分支: 查看分支:git branch 创建分支:git branch <name> 切换分支:git checkout <name> 创建+切换分支:git checkout -b <name> 合并某分支到当前分支:git merge <name> 删除分支:git branch -d < ...
分类:
其他好文 时间:
2018-07-20 11:15:00
阅读次数:
122
max(iterable) 求最大值,可以传入key。 例子: min(iterable) 求最小值,支持传入key。 例子: match(regular expression, string) 字符串正则表达式复杂匹配。 例子: merge(iterable, iterable..) heapq的 ...
分类:
编程语言 时间:
2018-07-19 21:04:01
阅读次数:
145
class Solution { public TreeNode mergeTrees(TreeNode t1, TreeNode t2) { if (t1 == null && t2 == null) return null; if(t1 == null) return t2; if(t2 == ... ...
分类:
其他好文 时间:
2018-07-19 13:34:02
阅读次数:
118
Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists). Git fetch和git pull的区别, 解决Git报错:error: You have not conclu ...
分类:
其他好文 时间:
2018-07-19 12:01:21
阅读次数:
617
远程分支类似于本地分支,是指向远程仓库中的文件的指针。 1.远程分支抓取 @git fetch origin dev :拉取远程dev内容 fetch不会对本地仓库内容进行更新,只更新远端commitId 如果要把远端的分支内容也更新下来需要执行,git merge git pull=git fet ...
分类:
其他好文 时间:
2018-07-17 00:43:31
阅读次数:
114
学习目标: 在linux 上安装Git 服务器 在windows 上安装 Git 客户端 创建Git仓库,git用户 在windows 中获取项目,对项目进行增删改查,更新到服务器 创建两个分支,进行分支修改和代码合并 1. 在linux上安装git服务器 使用指令:sudo apt-get ins ...
分类:
其他好文 时间:
2018-07-15 23:18:22
阅读次数:
206