Skip to content

Instantly share code, notes, and snippets.

@toshke
Last active April 16, 2020 08:38
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save toshke/120a44ecd91aabf1dd11325b9e1f6257 to your computer and use it in GitHub Desktop.
Save toshke/120a44ecd91aabf1dd11325b9e1f6257 to your computer and use it in GitHub Desktop.
Useful git aliases push pull rebase master upstream
git config --global alias.plom '!git pull origin master'
git config --global alias.psom '!git push origin master'
git config --global alias.plod '!git pull origin develop'
git config --global alias.psod '!git push origin develop'
git config --global alias.plum '!git pull upstream master'
git config --global alias.plud '!git pull upstream develop'
git config --global alias.plrum '!git pull --rebase upstream master'
git config --global alias.plrom '!git pull --rebase origin master'
git config --global alias.plrud '!git pull --rebase upstream develop'
git config --global alias.plrod '!git pull --rebase origin develop'
git config --global alias.psf '!git push --force'
git config --global alias.psomf '!git push origin master --force'
git config --global alias.psodf '!git push origin develop --force'
git config --global alias.pl '!git pull'
git config --global alias.ps '!git push'
git config --global alias.cd '!git checkout develop'
git config --global alias.cm '!git checkout master'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment