[PATCH 0/2] advise about force-pushing as an alternative to reconciliation
- From
Alex Henrie <alexhenrie24@gmail.com>
- Date
- Jul 2, 2023, 20:08 UTC
- Message-ID
- <20230702200818.1038494-1-alexhenrie24@gmail.com>
Many times now, I have seen novices do the following:
1. Start work on their own personal topic branch 2. Push the branch to origin 3. Rebase the branch onto origin/master 4. Try to push again, but Git says they need to pull 5. Pull and make a mess trying to reconcile the older topic branch with the rebased topic branch
Help avoid this mistake by giving advice that mentions force-pushing, rather than assuming that the user always wants to do reconciliation.
Alex Henrie (2): remote: advise about force-pushing as an alternative to reconciliation push: advise about force-pushing as an alternative to reconciliation
builtin/push.c | 22 +++++++++++++--------- remote.c | 3 ++- 2 files changed, 15 insertions(+), 10 deletions(-)
-- 2.41.0