gitgit-loggit-history

Git log: log of future revisions


When I check out a previous commit of a git repository, 'git log' no longer shows commits that were committed after the currently checked out commit.

So, the question is: how do get a log of commits after the currently checked out one?


Solution

  • You can use the --all flag to see all revisions, as in

    git log --all
    

    If you are just interested in the future revisions, you can also use

    git log ..@{1}      # assuming you just switched from the future master
    git log ..abcdef    # assuming abcdef is the newest future commit