
Git
文章平均质量分 56
iteye_7202
这个作者很懒,什么都没留下…
展开
-
git使用详解
git是Linux源代码管理的一个非常重要的工具,也非常实用,日常工作中学会使用git是非常必要的。 一、常见git命令1) 初始化gitgit init2) 使用前添加个人信息git config --global user.name "your name"git config --global user.email "your email"3) 查看当前修改状态git status4) 增...原创 2013-06-06 20:33:29 · 83 阅读 · 0 评论 -
Git常用命令备忘
转自:http://blogread.cn/it/article/6282?f=wb Git配置 git config --global user.name "robbin" git config --global user.email "fankai@gmail.com" git config --global color.ui true git config --...原创 2013-07-20 19:56:34 · 75 阅读 · 0 评论 -
恢复 git reset -hard 的误操作
有时候使用Git工作得小心翼翼,特别是涉及到一些高级操作,例如 reset, rebase 和 merge。甚至一些很小的操作,例如删除一个分支,我都担心数据丢失。不久之前,我在做一些大动作(rebasing)之前,我总是备份整个版本库,以防万一。直到最近我才发现git的历史记录是不可修改的,也就是说你不能更改任何已经发生的事情。你做的任何操作都只是在原来的操作上修改。也就是说,即使你删除了一个...原创 2014-05-28 15:23:48 · 96 阅读 · 0 评论 -
git查看某个文件的修改历史
有时候在比对代码时,看到某些改动,但不清楚这个改动的作者和原因,也不知道对应的BUG号,也就是说无从查到这些改动的具体原因了~ 【注】:某个文件的改动是有限次的,而且每次代码修改的提交都会有commit描述,我们可以从这里进行入手; 一、切换到目录 首先切换到要查看的文件所在的目录: cd packages/apps/Mms/src/com/android/mms/ui/ 二、...原创 2014-07-14 15:02:40 · 94 阅读 · 0 评论 -
复制git库
git clone --bare http://example.com/old-repo.git cd old-repo git push --mirror http://example.com/new-repo.git2014-10-07 17:41:10 · 108 阅读 · 0 评论 -
更新github的repository
When you fork GitHub repository, you usually want to have your fork up to date with the original repository.You can update your fork in a few easy steps. Just look at the following example of the Git...原创 2014-12-02 10:11:01 · 145 阅读 · 0 评论