Last active
March 13, 2024 12:05
-
-
Save ameenross/6642fd34b5ba4aaebe5dc9d3079de4bf to your computer and use it in GitHub Desktop.
git PSH - Git alias to pull with rebase, then push. Its superlative, git PSHHH, to stash changes before git PSH and unstash afterwards.
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 psh(hh) | |
git config --global alias.psh '!git pull --rebase=merges; git push'; | |
git config --global alias.pshhh '!git stash; git pull --rebase=merges; git push; git stash pop'; |
Author
ameenross
commented
Aug 16, 2018
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment