Tutorial :Show new revisions in gitk after git pull


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.


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.


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>.


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.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »