Can't I force push while I'm requesting a pull?

Asked 2 months ago, Updated 2 months ago, 3 views

2 Answers

I often make pull requests, but I haven't actually tried them, so it's just speculation.

force push seems fine if it's just a commit (equivalent to squash), but
If I change the origin of the branch after the pull request (rebase), I think it will break.

Original State

A---B---C master
     \
      D---E---Ftopic (You)

After modification (compressed commit)

A---B---C master
     \
      D'topic (You)

After modification (change the origin of the branch)

A---B---C master
         \
          D'---E'---F'topic (You)


2022-09-30 14:13

I didn't know what kind of condition it was written to break even after reading the help, but
It may mean that it cannot be linked (consistency) when comments are included in the review.
(The position of the code pointed out does not match the current position)

I've never seen commits disappear or merge.


2022-09-30 14:13

If you have any answers or tips


© 2022 OneMinuteCode. All rights reserved.