git-log Questions
1
Solved
Per: Difference between git-log and git-whatchanged?
Encourage new users to use 'log' instead. These days, these commands are unified and just have different defaults.
I only recently discove...
3
Solved
I'm curious what do line colors mean in git log --graph?
Yes, I'm asking about lines | / \ which connect commits * at the left edge of console output.
Question #1
Do these colors have some h...
2
Solved
I am trying to develop a format string to pass to git log --pretty so that each log entry ends in a full commit message, yet each log entry is separated by exactly one empty line. The problem is th...
Scornful asked 19/9, 2019 at 17:23
11
Solved
Or just all the commits that occurred between two dates? In SVN, you could do something like
svn diff -r{date}:{date}
to do it! I can't seem to find a Git equivalent to this.
Specifically I'm ...
6
Solved
Let's say I created a new branch my_experiment from master and made several commits to my_experiment. If I do a git log when on my_experiment, I see the commits made to this branch, but also the co...
5
Solved
Is there a way to configure git log to use a mailmap file by default? Without having to specify a format (or an alias for one).
7
Solved
Given a period of time (e.g. a day, a week, a month), is it possible to list all files that were modified or added in this time?
3
Solved
I wanted to search for the commit that either contains the string "hello world" or any commit that included that phrase inside of a file.
git log -SHello World doesn't work
git log -S'Hello Worl...
3
Solved
In my project there are multiple branches. I want to check which is the latest commit in the history irrespective of any branch.
I have tried git log -n 1 --date-order but it gives the commit in t...
Endless asked 27/6, 2019 at 4:42
2
Solved
when I run
> git log --oneline
I get output that looks like this
abcdef0 (head, branch, origin/branch) comment
0987654 different comment
1234567 (different-branch, origin/branch) third comme...
Rittenhouse asked 20/6, 2019 at 23:15
1
Situation
I am using git log with a custom --pretty:format:
git --no-pager log --pretty=format:"%C(yellow)%h%Creset %s %Cgreen(%cr) %Cblue<%an>%Creset" -5
which produces an output like t...
2
Solved
Is there a tool that can show me what branches a specific branch has been merged into? For example, if "A" has been merged into "B" and "C" but not "D", how do I output "B" and "C"? I'd only need t...
3
Is it possible to show only commits and changes created in a specific branch? If I do this before merge it works. If I merge master branch to this branch (to make it actual) then I see commits and ...
Batch asked 3/9, 2014 at 5:50
1
Solved
The man page git-log(1) says:
-r
Show recursive diffs.
So we can put this question in another way:
What is meant by "recursive diffs" in this context.
After getting this answer from @phd, I...
3
Solved
I'm trying to use git log -L <start>,<end>:<filename> but I would like to have very limited output (actually just hashes). While --pretty prints the commit info in the format I wa...
1
Solved
I have a website/repo.
Part of my website says:
"Powered by https://myotherwebsite.com/'"
at some point, some troll I had working on the website switched it to say:
"Powered by https://theirweb...
Advent asked 7/2, 2019 at 6:33
5
Solved
When you run git log --decorate --pretty=oneline the output will have entries like (HEAD, refs/published/master, master) with coloration.
I also have the following in my gitconfig:
[color "branch...
2
Solved
I use git log --all --graph --oneline --simplify-by-decoration to show large git commit history, but there is no commit date, what can add date?
1
Solved
In my workflow I'm usually only interested in my own branches and some specific branches like staging or master and would like my git log to reflect that. I've come up with this command :
git log ...
Mcmann asked 8/12, 2018 at 10:9
1
When doing gitk --all I get a nice summary of commits/branches/tags across a whole repo.
However, the way the branches are displayed is not always consistent, and it is also different to the metho...
Replacement asked 24/11, 2012 at 18:46
1
Solved
I want to create a metric in my project that measures how long does a commit take from its creation till to get into the master branch.
Is it possible? It looks like for fast-forwarded commits I ca...
3
Solved
I want to see a list of only non-common commits between two branches.
How can I get output like this?
Basically a git diff -y master new-feature summary between two branches:
master new-feature
--...
2
Assume something like the following:
HEAD/master
|
A<--B<--C<--D<--E<--F<--G<--J
^
official
Where official is a branch.
I wanted to cherry-pick 2 commits to official...
Messner asked 7/2, 2017 at 20:46
5
Solved
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 exist...
1
Solved
I've the following scenario:
Deleted a file called src/GetData.cs in commit 1.
Created a file called src/Get/GetDataNew.cs in commit 5.
Renamed file in 2 to src/Get/GetData.cs in commit 7.
The ...
© 2022 - 2024 — McMap. All rights reserved.