I am new to Git and bitbucket so excuse me if this is a very simple question.
I am using bitbucket in conjunction with TortoiseGit and I've set it up according to:
http://guganeshan.com/blog/setting-up-git-and-tortoisegit-with-bitbucket-step-by-step.html
and it is all working correctly.
What I would like to do is that when I click on show log from tortoiseGit I see the log of the remote branch ( hosted on bitbucket ) not that of the local branch
I managed to see the remote's branch log by doing:
git fetch
git log remote/test
from gitbash ( https://github.com/abhikp/git-test/wiki/View-the-commit-log-of-a-remote-branch )
Is there any way I can accomplish the same task from within tortoiseGit?
To view your remote branches, simply pass the -r flag to the git branch command. You can inspect remote branches with the usual git checkout and git log commands. If you approve the changes a remote branch contains, you can merge it into a local branch with a normal git merge .
You can emulate those steps in TortoiseGit:
git fetch origin
:git log origin/test
:In the log dialog box, select "All branches", to see the remotes/origin/test
you can see other illustrations in the dev guide.
The accepted answer shows all commits on all branches which isn't quite what was asked, and often shows too much information to understand. You can do the following to view just a single remote branch instead.
Perform "git fetch" as usual either from the TortoiseGit or from the command line.
In the "Log Messages" dialog, click on the blue branch name in the top left corner to open the "Browse references" dialog
In the "Browse references" dialog select the remote branch you want to view, it will most likely be under refs->remotes->origin. Then click on the "OK" button to return to your "Log Messages" dialog. The commit history should now show the details of the remote branch that you selected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With