Skip to content

Instantly share code, notes, and snippets.

@hamonangann
Last active December 1, 2023 01:49
Show Gist options
  • Save hamonangann/36bb60102d69603fde62881287797ff1 to your computer and use it in GitHub Desktop.
Save hamonangann/36bb60102d69603fde62881287797ff1 to your computer and use it in GitHub Desktop.
auto git rebase
git checkout $1
git fetch upstream
git rebase -s resolve upstream/master
git push --force-with-lease origin $1
git checkout master
@hamonangann
Copy link
Author

how to run:
chmod +x autogitrebase.sh for the first time
then ./autogitrebase.sh yourbranchname

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment