基本操作练习 https://try.github.io
git init 初始化仓库
git status 查看状态
git add '*.txt' 将文件加入管理
git commit -m "说明" 提交变动
git log 查看提交的历史记录
git remote add origin ht...
分类:
其他好文 时间:
2015-01-30 15:27:56
阅读次数:
166
另一哥们将分支push到库中,我怎么获取到他的分支信息呢?如果安装了git客户端,直接选择fetch一下,就可以获取到了。如果用命令行,运行 git fetch,可以将远程分支信息获取到本地,再运行 git checkout -b production origin/production 就可以将远...
分类:
其他好文 时间:
2015-01-29 12:14:55
阅读次数:
266
2D和3D转换涉及到数学中的知识,作为一个数学专业的毕业生,不研究一下岂不是对不起自己的专业?首先来看几个参数:1、transform-origin:origin(起源,起点),也即变形的起点,在数学上可以理解为坐标原点。 其语法为:transform-origin:[ | | left | c.....
分类:
Web程序 时间:
2015-01-28 17:27:12
阅读次数:
1499
在本地创建和远程分支对应的分支,使用git checkout -b branch-name origin/branch-name,本地和远程分支的名称最好一致;建立本地分支和远程分支的关联,使用git branch --set-upstream branch-name origin/branch-n...
分类:
其他好文 时间:
2015-01-28 12:45:28
阅读次数:
149
cocos2d-x 游戏开发之坐标系坐标系很令人迷糊。特记录如下。说明:1)cocos2d-x的坐标系是右手系。2)初始化场景时通过下面的函数得到显示范围左下角(VisibleOrigin)坐标:Point origin = Director::getInstance()->getVisibleOrigin();3)初始化场景时通过下面的函数得到显示范围(VisibleSize)尺寸:Size v...
分类:
其他好文 时间:
2015-01-27 18:21:32
阅读次数:
238
事实上Git 的推送和删除远程标签命令是相同的,删除操作实际上就是推送空的源标签refs:git push origin 标签名相当于git push origin refs/tags/源标签名:refs/tags/目的标签名git push 文档中有解释:tag > means the same ...
分类:
其他好文 时间:
2015-01-27 13:04:17
阅读次数:
216
当你从远程仓库克隆时,实际上Git自动把本地的master分支和远程的master分支对应起来了,并且,远程仓库的默认名称是origin。要查看远程库的信息,用git remote:$ git remoteorigin或者,用git remote -v显示更详细的信息:$ git remote -v...
分类:
其他好文 时间:
2015-01-27 12:58:24
阅读次数:
114
如果标签打错了,也可以删除:$ git tag -d v0.1Deleted tag 'v0.1' (was e078af9)因为创建的标签都只存储在本地,不会自动推送到远程。所以,打错的标签可以在本地安全删除。如果要推送某个标签到远程,使用命令git push origin :$ git push...
分类:
其他好文 时间:
2015-01-27 12:47:36
阅读次数:
142
uva 11210 Chinese Mahjong
Mahjong () is a game of Chinese origin usually played by four persons with tiles resembling dominoes and bearing various designs, which are drawn and discarded until o...
分类:
其他好文 时间:
2015-01-27 09:30:43
阅读次数:
273
Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent node) or empty, flip it upside down and turn it into a tree where the origin...
分类:
其他好文 时间:
2015-01-27 07:07:43
阅读次数:
193