I've been using git-tfs and been doing git tfs pull
all the time. Now I'm trying to find a way to see diff before merging after git tfs fetch
and can't find a way. git remote
doesn't show a tfs repo as a remote.
Asked
Active
Viewed 802 times
2

iLemming
- 34,477
- 60
- 195
- 309
-
What are you trying to see? The changes made upstream before you merge them into your local branch? – May 01 '13 at 16:04
-
that's right, exactly what I wanna do – iLemming May 01 '13 at 16:13
-
If you do `git branch -r`, does the remote TFS branch show up there? If it does, you can diff your local branch with it. – May 01 '13 at 16:55
-
oh yeah.. it shows it as tfs/default – iLemming May 01 '13 at 17:28
1 Answers
3
git remote
doesn't show a tfs repo as a remote.
That's wrong! When you clone a tfs repository with git-tfs, there is a tfs/default
that is created.
And that's the remote that are updated when you do a git tfs fetch
.
Consequently, you could do a git diff tfs/default
to see differences between your master and tfs/default
remote.
If you use git-tfs to manage TFS branches, there is even a remote for each branch...
Perhaps, you could even use the git tfs branch
command to see branches informations (if you have a recent version of git-tfs)

Philippe
- 28,207
- 6
- 54
- 78