So, the simplest way to ask my question, as far as I can tell, is to specify my use-case. At the end of the day, when I write in my journal, I want to be able to see what I have done that day. So I fetch
changes from work and then look at the log to remember what I did. The problem here is that even though clones allegedly contain everything important, I cannot for the life of me get the log entries of newer commits without checking out the branch in question and possibly doing a fast-forward. This can be done with SourceTree and TortoiseGit, but I use Linux, and all of the tools I have tried have the same issue as the stock git log --all
command that doesn't list the new commits that I know are there. How can I do this WITHOUT checking out all of the branches that may have new commits?
Edit: since giving replies in a comment is limited, I will do it here.
- I am currently using a bare repo with worktrees around it. Don't think that would cause issues, but I am including that anyway. The format is
- -Code
- ---Code.git
- ---master
git branch -r
outputs nothing when inCode.git
andmaster
. It gives a "not a git repo" error inCode
git fetch --all
indicates that it is fetching and receiving objects. It also completes successfully.git remote -vv
outputs the origin remote for push and fetchgit ls-remote origin
shows all refs and branches on the remoteCode.git/packed-refs
contains a list of refs for heads and tags for the remotefind Code.git/refs
outputs:
refs/
refs/heads
refs/heads/master
refs/tags