git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How to view diff when doing `git push --force`

From
KKES <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?
Previous: Ævar Arnfjörð Bjarmason
Message 3 of 3 in “How to view diff when doing `git push --force`”
  1. KESMar 11, 2017
  2. Ævar Arnfjörð BjarmasonMar 11, 2017
  3. KESJan 10, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.