
Git Guide
RichardYSteven
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Git 使用的简单汇总
1. 配置 git config --global user.name "your name" git config --global user.email mail@box.com git config --global color.ui true git config --global core.editor vi git config --global alias.lol ...原创 2010-10-21 16:01:00 · 27344 阅读 · 3 评论 -
通过http代理,下载git协议的repo
http://www.vpsee.com/2011/07/how-to-use-git-through-a-http-proxy/ 主要参考了这个帖子。 1. 如果是http或者https协议的,那比较简单 export http_proxy="http://proxy_ip_address:port" export https_proxy="http://proxy_ip_转载 2012-09-13 14:34:04 · 4941 阅读 · 0 评论 -
更改git 树中某个旧的commit
Please see this page. http://schacon.github.com/history.html I tried this and summary the step as following. 1. git rebase -i HEAD~3 2. change the "pick" to "edit" for the commit you want. 3. c转载 2012-02-24 09:53:06 · 2280 阅读 · 0 评论 -
git hub 的使用
官方的help 在 http://help.github.com 1. 创建一个新的repo 在自己的主页上有这个按钮,点击后有显示 Global setup: Set up git git config --global user.name "Richard" git config --global user.email richard@gmail.com原创 2011-09-27 23:32:15 · 3146 阅读 · 0 评论 -
git fetch 后, git merge 和 git rebase的区别
git fetch用来将自己本地的repo 更新到最新的。 但是fetch后,并不会显示到本地。 有两种办法, rebase 和 merge. if you want masterA => masterB => masterC => yourworkhere => (masterD and E merged) => HEAD then use merge if原创 2012-02-20 14:38:24 · 2106 阅读 · 0 评论 -
用gvimdiff来显示diff+我喜欢的
http://stackoverflow.com/questions/255202/how-do-i-view-git-diff-output-with-visual-diff-program The second method, which I prefer, is to configure the external diff tool via "gitconfig". Her转载 2011-10-13 00:16:18 · 5917 阅读 · 0 评论 -
Git 使用的一些介绍
A tutorial of a conceptual git. http://www.eecs.harvard.edu/~cduan/technical/git/ 在branch和merge, rebase 上有图片介绍,比较清楚 相对较短的篇幅,但是内容相对较全。 中文的 http://www.linuxgem.org/user_files/linuxgem/Image/g转载 2010-10-19 15:14:00 · 1326 阅读 · 0 评论 -
Show Git dirty status in your Unix bash prompt
<br />http://ambientideas.com/blog/index.php/2010/08/git-bash-prompt/<br /> <br /> RED="/[/033[0;31m/]" YELLOW="/[/033[0;33m/]" GREEN="/[/033[0;32m/]" BLUE="/[/033[0;34m/]" LIGHT_RED="/[/033[1;31m/]"LIGHT_GREEN="/[/033[1;32m/]" W转载 2011-03-31 15:29:00 · 1047 阅读 · 0 评论 -
Git - SVN Crash Course
http://writeblog.youkuaiyun.com/PostEdit.aspx对应了git的命令到svn的命令原创 2011-03-19 10:16:00 · 985 阅读 · 0 评论 -
使用 .gitignore来忽略某些文件
具体使用请看 man gitignore一般某个项目dev过程中都会产生一些中间文件,这些文件是我们不想要追踪的。git中可以使用.gitignore文件来忽略这些文件。在需要的目录下面 添加 .gitignore文件文件中每一行表示需要忽略的文件的正则表达式。$cat .gitignore #ignore .metadata .metadata .gitignore当前的目录情况$ls -al total 24 drwxr-xr-x 4 root root 4096 2010-12-11 1原创 2010-12-11 12:50:00 · 66202 阅读 · 3 评论 -
用git发patch
1. fetch gt tree git clone 2. git brach 显示 那个branch 3. git log 显示 log git show SHA! 显示某个commit的具体改动 4. 同步tree git pull 5 git commit git commit --amend -a 修原创 2011-08-19 12:01:32 · 4868 阅读 · 0 评论