Skip to main content
Filter by
Sorted by
Tagged with
-3 votes
0 answers
39 views

Issue: Some code containing a Client ID and Client Secret was accidentally pushed to the integration branch. Although those changes have now been reverted, the issue is that multiple branches had ...
Yashika Chandra's user avatar
0 votes
1 answer
75 views

I want to filter the commits shown by git log --graph, so that the commits included are either reachable only by the first parent (--first-parent) [type A] or which are not reachable, whose first ...
Caulder's user avatar
  • 459
3 votes
1 answer
169 views

When running git log to list commits with notes, it seems like the notes end with an extra newline. Example output with two commits where only the second one has a note: $ git log --pretty="%ad %...
Moberg's user avatar
  • 5,646
-3 votes
1 answer
132 views

I want to color just the date part of the identifier git reflog --date, prints so I need to run with the --pretty option. However, there is no placeholder for the date a command is issued, even though ...
Ooker's user avatar
  • 3,404
2 votes
3 answers
195 views

The git installed on my machine always creates master when I initialize any folder as git: PS C: \job-artifacts-and-outputs› git branch --show-current master So my local branch name is always master ...
Ramit Kishore Saha's user avatar
2 votes
0 answers
66 views

I have a Git repository cloned from a remote repository. In my local repository, I see: $ git branch --remotes origin/HEAD -> origin/master origin/master But when I then do: $ git log --...
jamesdlin's user avatar
  • 91.1k
0 votes
1 answer
103 views

I can run this to check logs: git log --graph --decorate --pretty=oneline --abbrev-commit --cherry-mark --boundary --left-right 450efff0b..aa562a8b8 3f2556baf..b5e526fe6 > b5e526fe6 (HEAD -> ...
Eugen Konkov's user avatar
1 vote
0 answers
116 views

I often watch git log --all --oneline --graph --decorate --colors to keep an eye on my rebases. Today, something rather unsettling is showing up: * b782b84 (HEAD -> dev, origin/dev) III * 22fe431 ...
iago-lito's user avatar
  • 3,256
3 votes
3 answers
227 views

I've been having a surprisingly hard time getting git log to show tags. I thought I'd found the answer here, but I've just discovered that when I do git log --tags --no-walk | grep a-tag-pattern-I'm-...
Steve Summit's user avatar
  • 49.2k
1 vote
1 answer
96 views

Since I have multiple colleagues in my team pushing out considerable amount of branches, whenever I want to disentangle my own branches I'd like to get a clear overview of only those. In summary I ...
hasdrubal's user avatar
  • 1,168
2 votes
1 answer
66 views

I need to follow the history of a binary file, like what I would get from git log --follow --patch textfile, but for a binary file. For git diff it's possible to configure a specific diff tool via ....
chichak's user avatar
  • 717
0 votes
2 answers
69 views

I find a line Footer is saved at the end of the file, with fixed length in fileA, and I want to know at which commit this line was added. Then I use git log -L 51,51:.../FileFormat.h And it turns out ...
calvin's user avatar
  • 3,135
1 vote
0 answers
59 views

I'm writing a patch for my code which mainly replaces contents within lines. I want the git diff --stat (and later git log --stat) to show me the numbers of characters, rather than lines, added or ...
einpoklum's user avatar
  • 137k
0 votes
2 answers
59 views

How can I show a blank line between each line on the output of git log --oneline?
tirenweb's user avatar
  • 31.9k
2 votes
1 answer
99 views

I trying to build a git log command to show commits reachable from commit1 but not reachable from a set of other commits (commit2 ...). However I seem to be doing something wrong with a command to ...
Rob Smyth's user avatar
  • 1,858
0 votes
1 answer
165 views

How to grep in commits of specific author(s) with git (i.e., w/o piping to grep)? I could use git log and pipe into grep, but maybe there's a better (faster?) way? git log --author="John Doe <...
hintze's user avatar
  • 650
0 votes
1 answer
55 views

Is there a way in Git to have a nice commit graph like this gives, git log --graph --oneline --all --decorate But with additional information, which would be retrieved from a custom executable? ...
Ondra Žižka's user avatar
1 vote
1 answer
53 views

I'm trying to find commits whose commit message includes both key words "x" and "y". I've tried using git log --grep="x" --grep="y", and while this does include ...
Josh Brunton's user avatar
-1 votes
1 answer
89 views

git log --graph --oneline --all is quite useful. How can I align the formatted logs to start in the same column though? For example git log --graph --oneline --all --format='%C(auto)%<|(15)%h %d %...
user avatar
3 votes
1 answer
68 views

At day job there are some automated commits made to our git repos with a specific subject: "Job: sync <unique-id> <timestamp>" A script exists that finds the latest commit of ...
Svintoo's user avatar
  • 65
0 votes
1 answer
293 views

We have a repository with 50k+ commits and recently when I want to filter the commits from Jan 24 to Feb 24, it doesn't show any commits but there were 1000's of commits on that month. Any idea what ...
Sithik Sm's user avatar
2 votes
1 answer
94 views

I would like a way to log certain commits and also submit path arguments so that the diff on those paths, if any, is shown for each commit as if those path arguments were supplied like git diff -- <...
H.v.M.'s user avatar
  • 1,746
0 votes
2 answers
96 views

Long time ago, there was a spike that I did to try something, and then I removed it. I don't remember when I removed it (more than a year or maybe two years ago), but it was in our codebase for two or ...
Ghassan Karwchan's user avatar
0 votes
0 answers
109 views

I've encountered a problem while using 'git log' in one stage of my GitLab pipeline. For some reason, when I try to filter the logs using the commit SHA, it doesn't work, but ONLY when I introduce the ...
eeml's user avatar
  • 1
1 vote
1 answer
77 views

Why does: $ git log --pretty "format:%h %s" fatal: invalid object name 'format'. fail but both: git log --pretty="format:%h %s" git log --author bob succeed? Why is the first ...
zzzgoo's user avatar
  • 2,255
1 vote
0 answers
39 views

I have a branch that merged some merge requests from other repositories, which resulted in non-linear committed time on my branch. When I use git log --since and traverse from HEAD to the parent ...
scanf3's user avatar
  • 43
-1 votes
1 answer
118 views

With git log --graph --all --oneline I have: * G (HEAD -> main, origin/main) ... * F * E * D * C * B | * Z |/ * A But if the --all flag is omitted, then the graph is: * G (HEAD -> main, ...
Ooker's user avatar
  • 3,404
0 votes
1 answer
92 views

I have a list of commits and I want git-log(1) or git-show(1) to show all of them. But only them. Not also commits that are reachable from them.
Guildenstern's user avatar
  • 4,492
1 vote
1 answer
123 views

Reading through this question about extracting footers from commits, the answer left something to be desired for my specific use case. Using the suggested command (git log --format="%h %s %(...
Josh Brunton's user avatar
0 votes
2 answers
194 views

I have a text file that I'd like to track changes with. It's a file that stores values (as well as strings and arrays) and has the following format for its entries: NAME: some_name UNIT: some_unit ...
jayveesea's user avatar
  • 3,259
1 vote
1 answer
83 views

I have multiple branches (dev, release_1, release_2, etc.). A lot of merges occur. I want to see all the merges to a branch after a specific commit / datetime. For example, in dev branch there is a ...
ChumboChappati's user avatar
-2 votes
1 answer
84 views

git log -L:function_name:file_name can be used to get the log of all commits that touched a specific function. But it always shows the content/diff of the commit as if -p option was applied. I have ...
Moberg's user avatar
  • 5,646
1 vote
1 answer
35 views

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,945
0 votes
1 answer
99 views

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
92 views

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,329
1 vote
0 answers
72 views

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
47 views

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
92 views

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
  • 29
-2 votes
2 answers
154 views

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
0 votes
1 answer
76 views

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
  • 273
0 votes
1 answer
54 views

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
70 views

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
0 votes
3 answers
101 views

I want to perform an interactive rebase in order to squash some commits. The way I do this is: use git log to search for the commits I want to squash count the number of commits from HEAD use git ...
user2138149's user avatar
  • 18.7k
1 vote
1 answer
55 views

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
70 views

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
27 views

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.5k
0 votes
2 answers
191 views

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
1 vote
0 answers
50 views

As a (late) followup on How do I clone a subdirectory only of a Git repository?, I additionally need the date and time of the latest commit in that subdirectory. However, the --depth=1 command only ...
olebole's user avatar
  • 593
0 votes
1 answer
94 views

I would like to git log file and have it show the full commit details, including all files affected by that commit, like git log --stat=999,999 produces. For example, git log --stat=999,999 path/to/...
Shovas's user avatar
  • 227
1 vote
1 answer
279 views

I'm creating a shell script that displays the commit IDs of the 5 last git commits of my git repository. Name of the script file: 'git_commit.sh' By "commit ID", I mean the full 40-character ...
yossi-matkal's user avatar

1
2 3 4 5
20