首先在一个中心仓库里面增加另外一个仓库的全部分支。
命令:
git remote add Cangku2 https://github.com/abc/abc.git
git fetch
这之后在使用 git branch -r 就能看到另外一个中心库的全部分支。
下一步就可以执行merge操作。...
分类:
其他好文 时间:
2014-12-15 07:51:43
阅读次数:
134
DescriptionGiven two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think...
分类:
其他好文 时间:
2014-12-14 21:14:42
阅读次数:
152
版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明http://navarro.blogbus.com/logs/31502374.html例:删除/home/raven下,包括子目录里所有名为abc.txt的文件:find /home/raven -name abc.txt | xa...
分类:
其他好文 时间:
2014-12-13 23:06:32
阅读次数:
283
默认的mail不能对外发邮件,修改/etc/mail.rc,增加以下内容:setfrom=report3@163.comsetsmtp=smtp.163.comsetsmtp-auth-user=report3setsmtp-auth-password=passwordsetsmtp-auth=login测试:echo"mailbody"|mail-s"subject"abc@qq.commail-s"mailsubject"abc@qq.com<yourb..
分类:
系统相关 时间:
2014-12-13 18:09:54
阅读次数:
172
今天用ajax的post方法提交数据给webservice,由于有email的缘故发现,注册方法调用总是报错,打开报文一看提交的 发现@符号被变成了%40 , abc@126.com 即abc%40126.com.开始我还以为他没有编码.后来百度搜索发现. 他默认是进过urlencode编码.为什么...
分类:
Web程序 时间:
2014-12-12 23:28:57
阅读次数:
244
Validate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the problem stat...
分类:
其他好文 时间:
2014-12-12 14:33:25
阅读次数:
156
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without
repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:
其他好文 时间:
2014-12-12 11:49:07
阅读次数:
132
场景: 需要在系统的cron中启动一个计划任务,跑的是一个shell脚本,脚本中大致意思是切换至
abc用户执行一个php文件(例如: /data/soft/auto.php),那么现在问题来了,脚本的内
容如下:
1
2
3
4
#!/bin/bash
...
分类:
系统相关 时间:
2014-12-12 11:43:11
阅读次数:
187
mysql 增加用户3、增加用户:(注意:和上面不同,下面的因为是MYSQL环境中的命令,所以后面都带一个分号作为命令结束符) 格式:grant select on 数据库.* to 用户名@登录主机 identified by “密码” 第一种:增加一个用户test1密码为abc,让他可以在任何....
分类:
数据库 时间:
2014-12-12 11:39:37
阅读次数:
235
场景:需要在系统的cron中启动一个计划任务,跑的是一个shell脚本,脚本中大致意思是切换至abc用户执行一个php文件(例如:/data/soft/auto.php),那么现在问题来了,脚本的内容如下:#!/bin/bash
sudo-uabc/data/soft/auto.php
echo‘>>>autosuccess!!!’你会神奇的..
分类:
系统相关 时间:
2014-12-12 01:25:57
阅读次数:
306