Skip to content

Instantly share code, notes, and snippets.

@Guirec
Created November 3, 2024 14:57
Show Gist options
  • Select an option

  • Save Guirec/8b679a7f45ab2fa440f4af9d0ad38a82 to your computer and use it in GitHub Desktop.

Select an option

Save Guirec/8b679a7f45ab2fa440f4af9d0ad38a82 to your computer and use it in GitHub Desktop.
git pull after remote forced update

No new local work

git switch branchname

git pull --rebase

Update and preserve local work

git switch branchname

git fetch

git reset origin/branchname --soft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment