git log of a single revision
I have a commit c. I want to get the changeset of that exact commit c + metainformation and no other one. Is there a simpler way than git log -p c^..c to do that? 4 Answers 4
I have a commit c. I want to get the changeset of that exact commit c + metainformation and no other one. Is there a simpler way than git log -p c^..c to do that? 4 Answers 4
The man page says that log shows the commit logs and reflog manages reflog information. What exactly is reflog information and what does it have that the log doesn’t? The log seems far more detailed. 7 Answers 7
Let’s say that I have a graph like this: A—B—C—D (master) \ \-E—F (HEAD) If I do git log –all –oneline, I will get all six of my commits. But if the graph is A—B—C—D (master, HEAD) \ \-E—F I will not see E and F. Can I get git to tell me all the … Read more
I recently learned that I can get hg log to print the history in reverse order with: hg log -r : So of course I tried: git log -r : Well, it didn’t work. So what is the command to do the same thing in git? 6 Answers 6
I’ve already looked at the relevant docs from git-scm.com and gitref.org, but I can’t seem to figure this out. Let’s say I want to get all commits for Tuesday, November 12th, 2013. Using an existing repo as an example, I know for a fact that I have commits on that day, as well as commits … Read more
I am trying to access a branch’s commit history on a remote repository. I had a look at the doc but could not find any substantial information on how to access a remote repo’s commit history using my local git client. 11 Answers 11
Say I have a file foo.js that was committed some time ago. I would like to simply find the commit where this file was first added. After reading the answers and my own tinkering, this works for me git log –follow –diff-filter=A –find-renames=40% foo.js 4 Answers 4
I’m on branch-X and have added a couple more commits on top of it. I want to see all the differences between MASTER and the branch that I am on in terms of commits. I could just do a git checkout master git log and then a git checkout branch-X git log and visually diff … Read more
I have a local branch tracking the remote/master branch. After running git-pull and git-log, the log will show all commits in the remote tracking branch as well as the current branch. However, because there were so many changes made to the remote branch, I need to see just the commits made to the current local … Read more
Some Git commands take commit ranges and one valid syntax is to separate two commit names with two dots .., and another syntax uses three dots …. What are the differences between the two? 4 s 4