문제

I want to see the commits of a particular branch without checking out to that branch and issue git log. Is that possible at all? I searched for a while but I found nothing!

Thanks

도움이 되었습니까?

해결책

Simply run git log <branch>.

For instance, if you want to see the log for the master branch, run:

git log master

At least, this works for me (I'm using git 1.9.2).

다른 팁

git log --branches=*<your-branchname> as stated in the manual:

Options>Commit Limiting

--branches[=<pattern>]

Pretend as if all the refs in refs/heads are listed on the command line as <commit>. If <pattern> is given, limit branches to ones matching given shell glob. If pattern lacks ?, *, or [, /* at the end is implied.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top