Suppose I have branch, two git clients and git server. Initially all of these have two commits (a and b):
client1: ...--a--b
client2: ...--a--b
server: ...--a--b
I have squashed last two commits on client1 (suppose now it's c) and made git push --force
, so now branch looks like:
client1: ...--c
client2: ...--a--b
server: ...--c
Here's the question: how to pull these changes on client2? git pull --force
wants to merge on client2, but I just want to pull changes, so that branch on client2 looks also like:
client2: ...--c