
git
iteye_2245
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
git add
git add 添加不在版本控制中的新文件 添加已在版本控制中但是刚修改过的文件 获得当前文件的快照并且把内容暂存到索引中,为下一次commit做好准备 ...原创 2013-05-14 10:25:09 · 82 阅读 · 0 评论 -
github如何开启两步验证
github如何开启两步验证: https://help.github.com/articles/about-two-factor-authentication#configuring-2FA-through-a-mobile-application https://github.com/blog/1614-two-factor-authentication ...原创 2014-04-13 17:38:00 · 7613 阅读 · 0 评论 -
github gist
github的gist gist是github的一个服务 粘贴工具 粘贴的文本会被放到一个git repo里面 http://www.infoq.com/cn/news/2008/07/gist-versioning-for-pasting原创 2014-03-24 10:39:54 · 398 阅读 · 0 评论 -
git如何添加颜色
git如何添加一些颜色: git config --global color.status auto git config --global color.diff auto git config --global color.branch auto原创 2014-03-17 14:19:06 · 372 阅读 · 0 评论 -
git revert
git revert ****** 撤销一个已经提交的commitID 只是撤销某次操作,不会改变别的 http://gitbook.liuhui998.com/4_9.html http://blog.youkuaiyun.com/koffuxu/article/details/6731876 ...原创 2014-03-13 19:14:00 · 88 阅读 · 0 评论 -
github如何协作
//B是你 fork A生成的 git clone B.git git remote add upstream A.git git pull upstream master git push origin master http://os.51cto.com/art/201308/408674.htm ...原创 2014-03-04 18:09:01 · 106 阅读 · 0 评论 -
github如何删除一个repo
如何在github上删除一个repo: 进入你的项目repo 右上角有一个setting 点击进入可以看到detele原创 2014-03-04 17:50:39 · 1469 阅读 · 0 评论 -
git之submodule
本来记录一下submodule相关的东西: 添加一个子模块 git submodule add [url] [path] 会出现一个.gitmodules的文件 可以用git submodule查看子模块的信息 子模块前面有一个 - ,说明子模块还是空文件夹 初始化子模块 //只在首次检出re...原创 2014-03-01 19:43:45 · 107 阅读 · 0 评论 -
git remote
git remote -v 显示所有的远程仓库 扩展阅读: http://blog.youkuaiyun.com/pgmsoul/article/details/7883706 http://blog.youkuaiyun.com/xiruanliuwei/article/details/6919416 ...原创 2013-05-28 13:35:44 · 89 阅读 · 0 评论 -
git cherry-pick
git cherry-pick <commit id> 对已经存在的commit进行再次提交 扩展阅读: http://sg552.iteye.com/blog/1300713 ...原创 2013-05-22 13:47:16 · 97 阅读 · 0 评论 -
git stash
本文来自:http://gitbook.liuhui998.com/4_5.html git stash 保存当前的工作状态 ------- 会保存你本地修改到存储(stash)中, 将你的工作目录和索引里的内容全部重置,回到你当前所在分支的上一次提交状态。 git stash li...原创 2013-05-21 15:59:54 · 109 阅读 · 0 评论 -
git之branch相关
git branch 显示本地的所有分支 git checkout [name] 切换到某个分支 git branch -r 查看远程分支 git branch -a 列出本地和远程分支 http://www.cnblogs.com...原创 2013-05-18 20:02:56 · 106 阅读 · 0 评论 -
git如何存储对象
所有的对象都以SHA值为索引用gzip格式压缩存储,每一个对象包含对象类型、大小、内容。 git有两种对象: 松散对象 磁盘上一个存储压缩数据的文件,每一个对象被写入一个单独文件中 2. 打包对象 节省空间,git只会保存第二个文件中改变了的部分,然后用一个指针指向相似的那个文件 ...原创 2013-05-14 10:27:05 · 161 阅读 · 0 评论 -
如何直接clone某一个分支
如何直接clone某一个git的分支版本: git clone -b <branch> <remote_repo>原创 2014-10-28 18:46:42 · 991 阅读 · 0 评论