码迷,mamicode.com
首页 >  
搜索关键字:$origin    ( 4398个结果
git 撤销commit
起因: 不小新把记录了公司服务器IP,账号,密码的文件提交到了git方法:git reset --hard git push origin HEAD --force其他:根据–soft –mixed –hard,会对working tree和index和HEAD进行重置:git reset –mix...
分类:其他好文   时间:2015-08-02 11:26:52    阅读次数:169
git使用
git rebase 不会取回代码 要用git fetch先取回, git rebase 是合并代码。 (1)首先用git fetch返回服务器上的代码 (2)首先用git rebase origin/master 合并 (3)如果发生冲突了会提示, 然后可以使用git dif...
分类:其他好文   时间:2015-08-01 10:09:07    阅读次数:173
iOS CGRectInset,CGRectOffset
iOS 中有两个有关Rect的方法我们对比这来看一下 CGRectInset,CGRectOffset 我们先看一看 官方给出的解释 /* Inset `rect' by `(dx, dy)' -- i.e., offset its origin by `(dx, dy)', and    decrease its size by `(2*dx, 2*dy)'. */...
分类:移动开发   时间:2015-07-31 12:58:42    阅读次数:191
小结UILabel
标签常用的属性:(1)frame属性:设置标签的位置与大小。frame = CGRectMake(CGFloat x, CGFloat y, CGFloat width, CGFloat height);(2)origin属性:设置标签的位置,即标签左上角的坐标。origin = CGPointMa...
分类:其他好文   时间:2015-07-30 12:44:58    阅读次数:125
使用msysgit往github上传代码出错
今天尝试了一下先clone一个Github上的远程仓库到本地,然后修改、add、commit到本地,一切顺利,最后用git push origin master命令的时候出现如下错误: ? ??could not read username for ‘https://gith...
分类:Web程序   时间:2015-07-28 11:12:27    阅读次数:112
了解HTML5和“她”的 API (二)
Communication API Cross Document Messaging (跨文档消息通信) postMessage API origin security(源安全)chatFrame.contentWindow.postMessage('hello','http:...
分类:Windows程序   时间:2015-07-27 12:57:14    阅读次数:249
git remote branch操作
将本地branch basic提交到remote的basic上:git push origin basic:basic将remote的 basic branch更新到本地的 basic branch上:git fetchgit merge basic(尽量不要用 git pull,会隐藏很多细节)
分类:其他好文   时间:2015-07-27 12:25:03    阅读次数:99
PUT vs POST in REST
from: http://stackoverflow.com/questions/630453/put-vs-post-in-restAccording to the HTTP/1.1 Spec:The POST method is used to request that the origin s...
分类:其他好文   时间:2015-07-27 10:40:18    阅读次数:135
Project Euler:Problem 91 Right triangles with integer coordinates
The points P (x1, y1) and Q (x2, y2) are plotted at integer co-ordinates and are joined to the origin, O(0,0), to form ΔOPQ. There are exactly fourteen triangles containing a right angle that...
分类:其他好文   时间:2015-07-26 00:35:30    阅读次数:384
如何在windows上把你的项目提交到github(转载)
(1)如何在windows上把你的项目提交到githubhttp://michaelye1988.iteye.com/blog/1637951(2)github错误提示:fatal:remote origin already existshttp://blog.csdn.net/dengjianqi...
分类:Windows程序   时间:2015-07-25 12:05:27    阅读次数:154
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!