Linked Questions

136 votes
4 answers
35k views

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?
Colin Ramsay's user avatar
  • 16.5k
11 votes
2 answers
8k views

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 ...
A. Hill's user avatar
  • 241
6 votes
3 answers
3k views

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
Synesso's user avatar
  • 39.2k
8 votes
2 answers
3k views

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....
Black's user avatar
  • 20.9k
3 votes
1 answer
871 views

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/...
vrms's user avatar
  • 275
1 vote
2 answers
1k views

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 ...
Alex Bollbach's user avatar
4 votes
1 answer
782 views

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/...
Ordiel's user avatar
  • 2,653
0 votes
1 answer
125 views

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 ...
p4avinash's user avatar
  • 687
0 votes
1 answer
204 views

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*_*...
venlentine's user avatar
3 votes
1 answer
80 views

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 ...
user6310717's user avatar