Pergunta

After I do git pull, I want to see the revisions I just fetched in gitk. How can I do this? I know I can see what revisions to use in the output of git pull and I can give them as a parameter to gitk, but I want to do this automatically.

(Actually, I don't need to see all the fetched revisions, those from the current branch are sufficient.)

I use msysgit's git bash.

Foi útil?

Solução

You can try a command similar to the ones used in "How can I see incoming commits in git?"

git fetch && gitk ..origin/master

, using the <rev> part of the "gitk [<option>…] [<revs>] [--] [<path>…]" syntax.

<revs>

Limit the revisions to show.
This can be either a single revision meaning show from the given revision and back, or it can be a range in the form "<from>..<to>" to show all revisions between <from> and back to <to>.

Outras dicas

Unless you have a really complicated tree there doesn't seem to be any reason not to use gitk --all &, then when you have done a git pull just select update or reload in the gitk menu.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top