Linked Questions
10 questions linked to/from Making git diff --stat show full file path
136 votes
4 answers
35k views
Viewing a Deleted File in Git
I've deleted a file with Git and then committed, so the file is no longer in my working copy. I want to look at the contents of that file, but not actually restore it. How can I do this?
11 votes
2 answers
8k views
Git diff -name-only with full file path
currently using: git diff -name-status Now this will only give me the following output: README.md created.txt test.txt However I am looking for something more like this: /User/github/README.md ...
6 votes
3 answers
3k views
List new files added (by anyone) between two dates
How can I list the files that were newly added in commits between two dates (or between two commits)? I'd like to see The file path The committer/commit message The commit ref
8 votes
2 answers
3k views
Make `git stash show`, print full file path
I try to restore single files from a stash, therefor I need the full path of the files. But if I execute git stash show then often only a short path is shown. e.g. $ git stash show .idea/deployment....
3 votes
1 answer
871 views
what do 3 leading dots (...) in git diff --stat output stand for
I have a bit of a problem understanding this git diff output. I compare to branches $ git diff --stat f43003..860d281 subdir/ansible.cfg | 16 + subdir/...
1 vote
2 answers
1k views
What is a reliable way to detect whether a file or directory has changed in the most recent commit?
I have a web project which I deploy to an ec2 instance simply by pushing new commits. I use the post-recieve git hook remotely to execute a shell-script which 'deploys' the project by checking it out ...
4 votes
1 answer
782 views
git show truncates output only when piped
If I execute git show f12345a --stat I get the following output: commit f12345a Author: This Guy <[email protected]> Date: Mon Jul 1 14:00:59 2019 -0500 A commit hola/mundo/hola/mundo/...
0 votes
1 answer
125 views
How to get the terminal result into a file with full file name in linux
I'm trying to write how many lines of code difference are there between 2 git branches. So i ran the git command for the difference, on terminal, where it output the file location along with the ...
0 votes
1 answer
204 views
PHP exec output is abbreviate and cut
I try to catch the output of git log files the shell /usr/bin/git log --stat --pretty=format:%an*_*%cd*_*%H*_*%s output rrr*_*Wed Mar 29 15:03:44 2016 +0800*_*...
3 votes
1 answer
80 views
Lines of code not affected by recent commits
How to locate code in a git repository that did not change since a given date? I am trying to report stats (number of files/classes/lines) on a branch in active development, being interested in code ...