Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [git-log]

Shows the commit logs of a Git repo

1 vote
1 answer
18 views

How to search specified string which introduced by merge commit?

Is there a way to search for a specific string introduced from a merge commit? git log -S won't work and git log -m -p | less is too slow. To reproduce the the problem, given the setup: git init -b a ...
Weihang Jian's user avatar
  • 8,381
0 votes
1 answer
17 views

Git Log between tags show commits from another tag

I am executing a command to get a commits between two tags: git log --merges '7.0.8'...'7.0.9' --oneline Apart from commits that are between these two tags, I also receive some commit that was made ...
Goopalo David's user avatar
0 votes
1 answer
48 views

Git log -p -- <file> shows a commit with no patch

I asked git to show me all the commits that modified a certain file, and it produced what I asked, except some commits show no modification to said file (and so instead only the commit hash/author/...
Charles's user avatar
  • 1,163
1 vote
0 answers
32 views

"git log --all" - show multiple stashes

While using git, I noticed that my git GUI client (Git Extensions) shows all stashes I have if "show unrelated histories" is enabled - see below screenshot. However, when looking at "...
Josh Brunton's user avatar
1 vote
1 answer
35 views

No commit history with git log --follow after renaming folder with different case

I've had troubles after renaming a folder Draft to draft on macOS. The commands are below: cd path/to/Draft cd .. git checkout main git config core.ignorecase false # git mv Draft draft # Failed ...
Xili Yang's user avatar
0 votes
2 answers
47 views

Git auto created a FILE with git logs inside it

While pushing my commits to the remote branch and after staging files with git add ., Git unexpectedly created a new file named h containing commit logs. I'm unsure why this happened since I hadn't ...
nandu's user avatar
  • 9
-2 votes
2 answers
49 views

Git log --since not working as expected for 1 day timeframe

git log --since=1.day command displaying commits from June 27th despite today being July 3rd. I'm encountering an issue with the git log --since=1.day command in Git. According to the Git ...
Sumit Sharma's user avatar
-1 votes
0 answers
50 views

How to select a file from browser and see its log?

I have been using git for a while now, mostly through git gui, which is fine by me. However, I did not find a better way to go through a file history than using the command git log -p --follow -- ...
Clement44's user avatar
  • 717
0 votes
1 answer
41 views

Search git history by file content

I have a tarball from a point in time from a multi-year project. The tarball was supposedly from a particular release, and the project tags the commit corresponding to each release. However, the ...
PFee's user avatar
  • 263
0 votes
2 answers
36 views

Compare git branches with Cherry picked PR merged

I tried to compare 2 branches with branch strategy: branches strategy I have a development branch named S. Some works are done in temporary branches (A1, A2, B1, B2, C1, C2) then merged into ...
Kaoru54's user avatar
  • 11
1 vote
1 answer
50 views

Inconsistent git log results when filtering by directory

I’m encountering an odd behavior with git log when filtering by a specific directory. Here’s the command I’m using: 18:05:04 ~/Documents/01_repo/b2b-crm (uat) └─▶ $ git log --name-status --oneline --...
Emanuele Alfano's user avatar
1 vote
1 answer
38 views

Unable to register git `log` alias using CMD

I am trying to alias a log command using Windows CMD (using " because of Windows, see this answer): git log --pretty=format:"%C(yellow)%h %C(red)%ad %C(brightcyan)%d %C(white)%s" --date=...
Daneel Olivaw's user avatar
1 vote
0 answers
38 views

Show Git subtree commit history when --squash option was used

Is there any way to show only subtree history, like with git log but filtering only specific subtree's related commits? When I add a subtree with --squash option only a merge commit is shown, but the ...
Alberto López's user avatar
1 vote
1 answer
18 views

How can I get `git log` to append ellipsis after the commit subject line if the message body is non-empty?

E.g. suppose this is what my git history looks like: $ git log --oneline f9b86d3 (HEAD -> main) blah the baz 966a640 foobar the frob ac27e4d Revert "do something special" 338ff0f do ...
vergenzt's user avatar
  • 10.2k
0 votes
2 answers
65 views

Git log of a specific branch already merged

I'm trying to update a documentation script in Python, as my coworkers and I have recently started working with GIT. The point I'm at and stuck with now is trying to extract a list of the names of ...
Alberto-HdF's user avatar

15 30 50 per page
1
2 3 4 5
64