git-log Questions
1
Solved
I am trying to show commits (excluding merge commits) which were added to the master branch in the last 24 hours. Currently i am using this command for that:
git log --format=format:%s --no-merges...
3
Solved
I used almost all git log commands yet i haven't found a best way to do this. I need only this - get only file name with path nothing else
/path/filename.txt
/path/anotherfile.ext
...
...
My inp...
2
Solved
I would like to have an git log (or in any other way) output like this,
2015-01-14 10:33:14 main.cpp
2014-10-30 11:30:22 some.cpp
2014-10-27 10:15:43 another.cpp
2014-10-27 09:41:22 main.cpp
2014...
2
Solved
When I run git lg on my local development branch, the latest commit is shown as below:
* 7d21213 - (1 hours ago) update business rules - developer1 (HEAD, origin/develop, origin/HEAD, develop)
H...
2
If I have a specific string how can I use e.g git log to find the email of the committer from the command line?
I don't want to see the commit. I only want the "one-liner" command to give me only t...
1
Solved
Given the history
X-Y <- feature
/
A-B-C-D-E <- master
I want to get the descendants of a given commit. One solution seems to be:
git log --all --ancestry-path <ref>^!
However, ...
1
Solved
With this command:
git log --all -n30 --graph --abbrev-commit --decorate \
--date=relative --format=format:'%h - (%ar) %s - %an%d'
I will get a wonderful tree which is exactly what I am lookin...
1
Solved
I would like to git log --follow file.ext but showing all commits, including merges.
Tried no-max-parents, but not helping.
1
Solved
Task number = JIRA issue number = **** (E.g.: 7600)
Let's suppose that I have a list of commits having the following messages:
PRJ-7600 - first message
PRJ-8283 - second message
PRJ-8283 - third ...
3
I probably end up re-inventing parts of the github REST API for my own repo server. But maybe there is some server script to do that already out there? Or maybe you have other suggestions?
This is...
Bergstrom asked 2/7, 2012 at 21:12
8
Solved
I want to use git log to show all commits that do not match a given pattern. I know I can use the following to show all commits that do match a pattern:
git log --grep=<pattern>
How do I i...
1
Solved
I am trying to see the commits in the history of a repository but just for files with an specific extension.
If this is the directory structure:
$ tree
.
├── a.txt
├── b
└── subdir
├── c.txt
└─...
2
Solved
I know that, in Git parlance, "detached HEAD" corresponds to a state in which the symbolic reference HEAD is not pointing to any branch. I also know that git branch, for instance, will te...
Cleocleobulus asked 19/8, 2014 at 20:39
3
Solved
When using git log, I can supply --since=<date> to limit the log to commits newer than a certain date.
With git branch -r, I get all the remote branches.
How would I get the list of branche...
Loudish asked 30/1, 2015 at 14:27
1
Solved
It is possible to get a git shortlog result with the date/time of the commit?
Otherwise is it possible to get git log to group commits and sum them by author and print out only the message and ti...
2
Solved
In Gitk I can see a team member's commit (X) that has two parents: the first parent is his own previous commit (A), the other parent contains lots of other people commits (1 through 5). After his m...
Leviathan asked 22/1, 2015 at 0:43
1
Solved
Why isn't the pathspec magic :(exclude) excluding the specified files from git log's output?
This is a follow-up to Ignore files in git log -p and is also related to Making 'git log' ignore changes for certain paths.
I'm using Git 1.9.2. I'm trying to use the pathspec magic :(excl...
4
Solved
How can i get a list of all the git commits done to the master branch between 2014-01-01 and 2014-06-30?
I know git log will give me roughly this format (repeated for all commits):
commit <has...
1
Solved
When stashing some changes, Git creates two separate commits, 'WIP on branch' and 'index on branch':
$ git log --graph --all
* commit 98aac13303ca086580c1ec9ccba5fe26c2a8ef3c
|\ Merge: 7d99786 82...
1
Solved
Running git log --first-parent -p shows me the commits I am interested in but I want to see the patch for the merge commits as well as non-merge commits (-p only shows the patch for non-merge commi...
2
I want to find commits that introduced added a "TODO" or "FIXME" comment and order them by date.
I know that git log -G'TODO|FIXME' will show me commits that contain either comment and I could do ...
1
Solved
How are the commands git log -p, git show, and git diff related and why would one be used over another?
Given a repo with the following 4 commits:
commitd - last commit
commitc
commitb
coom...
1
Solved
I regularly use the following git-log command:
git log --oneline --graph --decorate --all
The command is perfect for me, with one exception. I maintain a set of refs in refs/arch/ that I want to k...
1
Solved
I'm trying to summarize my work on a project. The problem is that I do not want to include test files in the output of git log --patch.
The files are in a single directory called mtest; however, t...
5
Solved
Your branch is ahead of 'origin/master' by X commits. How to find the X commits? [duplicate]
I was checking the X commits using the following command:
git log --author=<my-name> -<X>
But the problem is that I accidentally pulled code from another repository and added t...
Thicken asked 4/1, 2013 at 9:35
© 2022 - 2024 — McMap. All rights reserved.