Local - 5 commits in front of the master of remote origin, how can I see what will be downloaded?

I accidentally added a large 20 MB file to git, and I did -ammend and deleted the file.

Before running the git Origin Wizard, I want to make sure the file is deleted.

I tried making the initial git push host, and it took a long time, and the transfer reached as 7mb, so I decided that the large file is still somewhere in the history.

How can I find out if a large file is in the git repo history?

+3
source share
2 answers

You can see diff with:

git diff origin/master

Or you can get information for each commit with:

git whatchanged -p -5

-p prints diff, and -5 means the last 5 commits, since you're 5 ahead. As an alternative

git whatchanged -5

, diff , , .

+8

$ git log origin/master..

(, master), origin/master.

+3

All Articles