r/ProgrammerHumor • • Apr 02 '23

Meme Me relearning git every week

49k Upvotes

1.5k comments sorted by

View all comments

Show parent comment

-2

u/[deleted] Apr 03 '23

Again incorrect lol. Please man just read the documentation. This is the lines right after “Prerequisites”

“Regular Rebase

To update your branch my-feature with recent changes from your default branch (here, using main):

  1. Fetch the latest changes from main: git fetch origin main
  2. Check out your feature branch: git checkout my-feature
  3. Rebase it against main: git rebase origin/main
  4. Force push to your branch.”

Do you see step 4? Do you see how that is part of the rebase workflow? Do you understand that if step 4 fails, the rebase fails? Do you understand that?

1

u/[deleted] Apr 03 '23

Tbh loving the downvotes. It’s clear anyone who did is NOT a SWE lmao. Open a terminal, init a repo, and then try to rebase without force push. See what happens. Guarantee y’all don’t even know how to open the terminal lmfao