From the git-log
manpage:
--all
Pretend as if all the refs in refs/ are listed on the command line as <commit>.
Using --all
, git log will look at all of the heads (local branches), remote branches, and tags, and show log entries for everything in the graph that is reachable from any of those references.
If you have done a git fetch on both repos (and a git pull implies a git fetch), then some of these things should be consistent between your two repos already: specifically remote branches and annotated tags.
However, other things may not be consistent. Non-annotated tags may not be shared between the two, and the local branches might differ.
In your second repo, you are using --bare
. By definition you have no checkout at all there. That means you have not checked out any local branches. Your first repo may have non-shared local branches (such as topic or feature branches). If so, those could affect the log output when using --all
.
Stashes are also stored under refs/
. Any stashes in your first repo would affect git log as compared to the log of the second repo.
--all
. – Roadwork