When you run git pull
from a remote repo, you'll see a list of all the files updated and the number of lines changed, along with approximate ratios of insertions/deletions. You'll also see any created, renamed, deleted and mode-changed files. For example:
Updating 5524541..cff1e7a
Fast-forward
.gitignore | 4 +-
.vscode/settings.json | 7 ++
README.md | 40 ++++++-
clean.sh => dev_scripts/clean.sh | 0
dev_scripts/main.sh | 2 +-
... many more files here ...
41 files changed, 1044 insertions(+), 502 deletions(-)
create mode 100644 .vscode/settings.json
rename clean.sh => dev_scripts/clean.sh (100%)
delete mode 100644 dev_scripts/test_old.py
create mode 100644 postinstall/2.0.7_00_fix_missing_models.py
create mode 100644 test/csv_test.py
Is there a way to get output similar to this but by specifying the starting and ending commit on a local repo? I basically want the same output as the git pull
fast forward output, but without actually performing any actions, just displaying what would happen if I were in a scenario where my local repo was at commit A and the remote was at commit B and I did a pull (even though both commits are already in my local repo). Or, more succinctly perhaps, I want to see a summary list of what would happen if I were to start at commit A and checkout commit B.
I know about git diff
which basically performs the desired function (showing me what the changes are between two commits), but it prints out the entire diff between the two commits (I believe it comes out in something suitable for patch
?), whereas I'm just looking for the summary report like the fast-forward report.