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...
Woods asked 29/1, 2019 at 0:55

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...
Sensitivity asked 18/11, 2016 at 10:47

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 ...
Cyanic asked 21/7, 2009 at 20:35

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...
Mika asked 7/6, 2013 at 0:5

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).
Antiquary asked 8/12, 2012 at 11:49

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?
Epitome asked 4/11, 2011 at 22:53

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...
Obduliaobdurate asked 4/12, 2015 at 20:36

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...
Splanchnic asked 16/6, 2019 at 18:27

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...
Collenecollet asked 4/6, 2019 at 23:46

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...
Gangrel asked 12/5, 2019 at 14:3

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...
Weighty asked 2/1, 2017 at 13:16

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...
Spyglass asked 4/5, 2011 at 21:7

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?
Escheat asked 17/12, 2018 at 5:49

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...
Jewelljewelle asked 21/11, 2018 at 18:26

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 --...
Diskson asked 1/11, 2018 at 18:13

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...
Adoree asked 14/11, 2013 at 19:55

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 ...
Vertumnus asked 2/8, 2018 at 19:11

© 2022 - 2024 — McMap. All rights reserved.