git
跳转到导航
跳转到搜索
环境变量
git 会读取若干环境变量,在 hook 中亦会设置一些环境变量。
在 hook 中
GIT_DIR环境变量被设置为 git 仓库目录。如果不需要(比如操作其它 git 仓库),则需要 unset 之。
详解
本节列出详细的分页笔记页面,页面命名尽量与manpages一致。
- git-commit
- git-log
- git-branch
- git-remote
- git-diff
- git与补丁
- git-filter-branch
- git-tag
- git-cherry, 寻找未合并的提交
- git-cherry-pick, 在一个分支上应用指定的提交
- git-push
- git-merge
配置相关
其它
参见
相关软件
- gitg,使用 GTK 编写
- giggle – 来自 GNOME 的 git 图形界面 « K.I.S.S. – 简单哲学
- gitstats,从gitstats看Ubuntu Tweak三年之发展 | I'm TualatriX
- metastore,http://david.hardeman.nu/software.php#metastore
- bartdag/gitli, 基于 git 的 issue tracker,使用 Python 编写
- libgit2,Git 的动态链接库,有各种语言绑定,如 pygit2
- tig, 一个类 vim 的 curses 前端
- git-mediawiki, 与 MediaWiki 互操作的 Perl 脚本。效率有点低。
- Welcome | Legit (Git Workflow for Humans)
- bup: 使用 git 对象来处理备份
- git-annex: 大文件存储、传输与备份
- ingydotnet/git-subrepo
- git-series/git-series: Track changes to a patch series over time
外部链接
- Github第一年教给我的10堂课
- The Architecture of Open Source Applications (Volume 2): Git
- https://groups.google.com/d/msg/shlug/BJMlD14Zz9o/WfNCRXs3CjMJ , git 重命名检测算法
- git gc - What do the numbers in the "Total" line of git gc/git repack output mean? - Stack Overflow
- Mort | 【译文】Scala与Git:“好”的敌人是“足够好”
- Git Koans / Steve Losh
- Bridge support in git for mercurial and bazaar | Felipe Contreras
- Tech Talk: Linus Torvalds on git - YouTube
- 10 Years of Git: An Interview with Git Creator Linus Torvalds | Linux.com
- Why I Don't Hate Git: Hidden Consistency | Armin Ronacher's Thoughts and Writings
教程和手册
- Git Reference
- Pro Git (中文)
- gittutorial(7)
- 开源世界旅行手册: 第 28 章 Git 版本控制系统
- Git 中文教程 (自2010年11月23日已不可用)
- GitFaq - Git SCM Wiki
- git入门教程
- Git Cheatsheet,很炫的网页
- 理解Git工作流
- Git from the bottom up | Lost in Technopolis
- A few git tips you didn't know about
- How to undo (almost) anything with Git
- Commits are snapshots, not diffs - The GitHub Blog
对比
- Git - Fast Version Control System,与svn对比讲解git的用法
- Why Git is Better Than X
- Why I Switched to Git From Mercurial — Extra Cheese
- git 和 mercurial 的区别
- Chris's Wiki :: blog/programming/WhyILikeGit
使用技巧
- Must Have Git Aliases: Advanced Examples - be present now
- git fixup: --amend for older commits
- Chris's Wiki :: Some git aliases that I use
- Get up to speed with partial clone and shallow clone - The GitHub Blog
- 本地 git 的 partial clone - delphij's Chaos