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...
Gasperoni asked 16/1, 2014 at 13:36

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...
Clive asked 9/5, 2010 at 19:13

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.
Niklaus asked 11/5, 2022 at 7:4

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...
Overdraft asked 30/3, 2022 at 2:55

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...
Showboat asked 7/3, 2022 at 17:12

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 ...
Posthorse asked 18/12, 2012 at 21:43

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...
Beaman asked 8/11, 2012 at 14:41

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...
Sackman asked 6/9, 2013 at 22:8

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...
Gerius asked 20/2, 2013 at 20:6

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...
Fistic asked 2/1, 2019 at 17:21

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...
Archeozoic asked 3/12, 2021 at 19:23

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 ...
Carat asked 20/2, 2012 at 19:10

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...
Outlook asked 1/3, 2016 at 18:16

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 (...
Disaffirm asked 26/8, 2009 at 20:34

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 (...
Chem asked 26/8, 2009 at 20:34

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 (...
Lumberjack asked 26/8, 2009 at 20:34

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...
Eastertide asked 19/11, 2018 at 19:42

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...
Basophil asked 15/9, 2011 at 11:33

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 ...
Cognate asked 21/5, 2013 at 9:2

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
Piteous asked 2/7, 2021 at 18:28

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...
Calendra asked 24/1, 2011 at 20:43

© 2022 - 2024 — McMap. All rights reserved.