Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在使用git-tfs并且一直在做git tfs pull。现在我试图找到一种在合并之前查看差异的方法,git tfs fetch但找不到方法。git remote没有将 tfs 存储库显示为遥控器。
git tfs pull
git tfs fetch
git remote
git remote没有将 tfs 存储库显示为遥控器。
那是错误的!当您使用 git-tfs 克隆 tfs 存储库时tfs/default,会创建一个。这就是您执行git tfs fetch. 因此,您可以git diff tfs/default查看 master 和tfs/defaultremote 之间的差异。
tfs/default
git diff tfs/default
如果使用 git-tfs 管理 TFS 分支,甚至每个分支都有一个远程...
也许,您甚至可以使用该git tfs branch命令查看分支信息(如果您有最新版本的 git-tfs)
git tfs branch