简体   繁体   中英

git diff for a repo since origin

Is there a way to run a git diff on an entire project and get a text file output that represents all changes between origin and the present state of the project?

I know that there are similar questions like this one , but I'm looking not for a summary but the full, verbose output so that I can make sure that there isn't any sensitive data in the repo.

Or, if you need one huge diff:

git diff origin/master

This shows the difference of the tip of the current branch against origin master.

But note that if the sensitive data were added in one commit and then removed in a subsequent one, they are still retrievable.

If you need that type of repository, it is much better to make sure the sensitive data are never published. Let someone be responsible for the public one and let him review every individual commit before it gets there.

如果我正确地阅读了问题,那么您每次提交都是作为补丁进行的吗?

git log -U --full-diff -p

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM