git-log Questions
5
Solved
Before, I could just type
git log
Now, I have to type:
git log | less
to get the same effect. I haven't (intentionally) changed any parameters. I've checked my global config: "~/.gitconfig" a...
7
Solved
I recently learned that I can get hg log to print the history in reverse order with:
hg log -r :
So of course I tried:
git log -r :
Well, it didn't work. So what is the command to do the same...
1
Solved
When passed to a pager (git log | less, watch git log, etc), the (HEAD -> master, origin/master, origin/HEAD) doesn't show up.
1
It seems easy to list all tags with annotations, with e.g.:
git tag -n99
or
git for-each-ref --format '%(refname:short) %(contents)' refs/tags
And it's also possible to use git log to list tags b...
2
Solved
I just want to get a quick glance at the history of a project by having git log show only the commit date, nothing else. How can we best do that?
Update:
It turns out I was actually asking for the...
10
I am trying to access a branch's commit history on a remote repository. I had a look at the doc but could not find any substantial information on how to access a remote repo's commit history using ...
4
Solved
So I'm doing something like
git log --graph --pretty='%h %d %s' -n10
to get brief history of my recent commits.
The only issue I have is that most of the time I'm not interested in seeing the...
6
How can I move a directory and files to a sub-directory along with commit history?
For example:
Source directory structure: [project]/x/[files & sub-dirs]
Target directory structure: [projec...
8
Solved
I would like to see all stashes in git log output. Does anyone know if there is a way to do that?
Edit: I want to see all commits in the log -- including stash commits. I tried the command:
git log...
16
Solved
When using git log, how can I filter by user so that I see only commits from that user?
Alcoholism asked 23/11, 2010 at 19:31
4
Solved
I see lots of great answers in Pretty git branch graphs that show the oneline option for git log being used with dates. However, when I run these commands my output is different, I don't see the da...
1
Solved
I'm trying to get a customized git log listing using --pretty=format:"....", but can't seem to find out how get the ref names colored as in git log --oneline. This is my log command so fa...
4
Solved
I have 3 standard remotes for a the main repository I work in currently: a local backup, my development partner's workstation, and a hosted repository. We have 3 or 4 branches that are active most ...
3
Solved
Using Windows 10 Pro 64-bit I found a nice command to list the Git history, showing HEAD, branches, and tags as stand-out colors. Nice!
git log --oneline --decorate --graph --all
But I don't see...
9
Solved
In a Git code repository I want to list all commits that contain a certain word. I tried this
git log -p | grep --context=4 "word"
but it does not necessarily give me back the filename (...
9
Solved
In a Git code repository I want to list all commits that contain a certain word. I tried this
git log -p | grep --context=4 "word"
but it does not necessarily give me back the filename (...
9
Solved
In a Git code repository I want to list all commits that contain a certain word. I tried this
git log -p | grep --context=4 "word"
but it does not necessarily give me back the filename (...
1
I have the following aliases in my bashrc file.
alias gl="git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(whi...
27
Solved
How can I view any local commits I've made, that haven't yet been pushed to the remote repository? Occasionally, git status will print out that my branch is X commits ahead of origin/master, but no...
Sharpnosed asked 6/1, 2010 at 22:41
4
Solved
Say I have a file foo.js that was committed some time ago. I would like to
simply find the commit where this file was first added.
After reading the answers and my own tinkering, this works for me
...
Abernethy asked 18/7, 2012 at 1:44
4
Solved
Say I have a file foo.js that was committed some time ago. I would like to
simply find the commit where this file was first added.
After reading the answers and my own tinkering, this works for me
...
Hollis asked 18/7, 2012 at 1:44
5
Solved
I need to have format like:
git log --decorate --graph --oneline --date-order
but I need it also:
to contain date (short)
to have the same colors
I tried:
git log --decorate --graph --oneli...
4
Solved
When I run git log, what exactly is the editor git log is using?
Also:
Is there anyway I can use vim as my default editor for git log?
If I want to search against the git log, what's the best ...
2
Solved
Does any know why before include finish date?
The date 2021-07-01 14:13 actually is after 2021-07-01
Why results are wrong?
git version is 2.32.0
12
Solved
Let's say that I have a graph like this:
A---B---C---D (master)
\
\-E---F (HEAD)
If I do git log --all --oneline, I will get all six of my commits.
But if the graph is:
A---B---C---D (master, HE...
© 2022 - 2024 — McMap. All rights reserved.