Last active
December 1, 2023 01:49
-
-
Save hamonangann/36bb60102d69603fde62881287797ff1 to your computer and use it in GitHub Desktop.
auto git rebase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout $1 | |
git fetch upstream | |
git rebase -s resolve upstream/master | |
git push --force-with-lease origin $1 | |
git checkout master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how to run:
chmod +x autogitrebase.sh
for the first timethen
./autogitrebase.sh yourbranchname