Re: How to view diff when doing `git push --force`
- From
- KES <kes-kes@yandex.ru>
- Date
- Jan 10, 2018, 13:48 UTC
- Message-ID
- <40271515592088@web42o.yandex.ru>
- In-Reply-To
- <CACBZZX5g95nTtA5--g8K29FjQ=dU3JLEfVXZjUs8J2Y-QCzYHg@mail.gmail.com>
> At this point, no, but in the future instead of --force use > --force-with-lease=<refname>:<expect> where <expect> is e.g. $(git > rev-parse HEAD).
Thank you.
But I have found next command to see what were changed. For example if someone did forced push and I wanna see changes before merge remote
git log --graph --decorate --pretty=oneline --abbrev-commit --cherry-mark --boundary --left-right
But is there an option to view changes in amended commits?
See the last code post about unknown option in the next answer : https://stackoverflow.com/a/48149931/4632019
If there is no such option. Will it be useful to have it?