Questions tagged [git-log]

Shows the commit logs of a Git repo

git log shows the commit logs in Git repository.

You can view the commit history of a specific file with the following:

git log <filename>

git log provides a large number of options to filter and format the resulting output, see the documentation for full details.

Reference

$ git log --help
920 questions
-1
votes
1 answer

how to find list of all commits between local branches and remote branches?

I am trying to find out list of commits between remote repository and local repository across all branches. How do generate this commit list? I have tried on my local machine running git log command with various options. It does not give me right…
-1
votes
1 answer

getting git log output in prettyformat

I have this command:git log --all --pretty=format:'%n{%n "CommitHash": "%H",%n "Author": "%an",%n "AuthorEmail": "%ae",%n "Date": "%ad",%n "Message": "%f",%n},' Ho can I modify it to get this: "Merge":"....." and this: Merge branch 'master'…
Simpson G.
  • 111
  • 8
-1
votes
1 answer

git log displays nothing for all projects

I have been using git for many years. But suddenly, git log command started displaying nothing. When I type git log command, it simply ends and displays nothing. The command git rev-list --all --pretty does return all the commits along with other…
-1
votes
2 answers

BitBucket - How is the pull request description field used when merging a PR?

We are using Bitbucket at work, here is the UI for creating a new commit message/description when doing a merge via pull request: as you can see in the screenshot, the question is: where does the data from the description text box go? In other…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
-1
votes
1 answer

How can I list related branches in git log

I am looking for a possibility to show the history of a given file together with the information in which branch the given commit is in. Given this git repositority: $ git log --graph --all --decorate=full --pretty=oneline --abbrev-commit * 3b116ab…
-1
votes
1 answer

Git log diffs around known line

Is it possible to log commits of file in git, when I know certain line, and want to show commits which edited the lines above or below that line in the scale of N lines? I want to find, which commit broke the functionality, when certain method call…
Tuomas Toivonen
  • 21,690
  • 47
  • 129
  • 225
-1
votes
2 answers

Get the merge files names in the git log command

We are using the below command to get the commits for a particular date range. However it is able to identify the merge (commits) from a different branch. But its not providing the merge list of file names in the output. Sample command which we are…
Skyrim
  • 154
  • 1
  • 13
-1
votes
2 answers

How do i get commit logs of a remote located branch?

Without cloning the repository, Is it possible to get the following from command-line/git bash, List of branches in the repository git logs of specific branch
VJohn
  • 493
  • 1
  • 14
  • 23
-1
votes
1 answer

bad default revision 'HEAD' when my directory has been moved

I know that there are different variations of this questions asked, but I couldn't find one that pertains to my issue I am having.... I initialized my git repo under my ~/Documents/git_project. I later moved the git_project folder to the ~/Dropbox…
Eldan Shkolnikov
  • 441
  • 1
  • 6
  • 13
-1
votes
1 answer

git log --format=format Difference between common commit and merge commit

How to distinguish common commit and merge commit in: git log --format=format:"something" It can distinguish recursive merge from any other because recursive has two parents, and I can use %p option and parse it, but what if I have common commit…
user3521479
  • 565
  • 1
  • 5
  • 12
-1
votes
1 answer

Why a simple linear git log doesn't seem to be time ordered?

I have a very simple (no branches, one developer) linear commit history. However git shows the log out of (time) order (screenshot 1). I have run also git log --pretty=fulle (as suggested here) and the author's dates and commit's dates always…
Antonello
  • 6,092
  • 3
  • 31
  • 56
-2
votes
0 answers

Learning Git and terminal issue

I'm learning about Git and a colon popped up in the terminal and the only way to remove it is to restart the terminal, What is it? and how do I get back to being able to type. All I have done is type "git log".image showing the colon in the…
-2
votes
1 answer

Does git not highlight the branch name on which we are after we switch to a branch using its case insensitive name

Suppose I am on a branch named main in git and we can confirm it by git branch and git log commands. Screen shot of git bash. But as branch names are case-insensitive in git. So, when we switch to any branch using git switch using its…
-2
votes
1 answer

How can I get git history (date range) log to a file without author, date, commit message and commit hash

How can I get git history (date range) log to a file without author, date, commit message and commit hash?
-2
votes
1 answer

JavaGit Api not Working on Windows

package modifiedlines; import edu.nyu.cs.javagit.api.DotGit; import edu.nyu.cs.javagit.api.JavaGitConfiguration; import edu.nyu.cs.javagit.api.JavaGitException; import edu.nyu.cs.javagit.api.WorkingTree; import…
Aryan Raj
  • 3
  • 1
1 2 3
61
62