开发者

Git: Viewing log info for revisions ahead of the currently checked out one

Just wondering,

If I check out a git revision behind the most recent, then run git log, it only sho开发者_如何学Cws logs up to the currently checked out revision - not the most modern.

So, how do I view log info for branches ahead of my currently checked out revision?


If you have checked out a different revision, then you are no longer on the original branch. So you can still run

git log branchname

to get the full log of the branch you are interested in.

If you only want to see the different log entries

git log ..branchname

Which will show all log entries between your current branch and the branch name specified.

You can do this for any two branches:

git log branch1..branch2
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜