缘起
之前与同事交流 git 时,简单介绍了 git shell 和 tortoisegit (戏称 小乌龟,tortoisesvn 操作极其相似)。
tortoisegit 的命令基本上与 git bash 中的命令一一对应。在 git bash 中提交变更到本地仓库需要先 git add 添加到暂存区,再通过 git commit 命令提交到仓库,但是在 tortoisegit 中可以使用 commit 命令 ”直接“ 提交到仓库。到底会不会经过暂存区呢? 我的理解是:会先添加到暂存区,然后再提交到仓库。到底是不是这样的呢?还是通过实验来观察。