Skip to content

Instantly share code, notes, and snippets.

@harishthatikonda
Last active September 17, 2020 14:35
Show Gist options
  • Save harishthatikonda/5d9d9310f0fedb6de2f4f3f790f1f6b9 to your computer and use it in GitHub Desktop.
Save harishthatikonda/5d9d9310f0fedb6de2f4f3f790f1f6b9 to your computer and use it in GitHub Desktop.
My everyday git aliases
[alias]
pr = pull --rebase
tree = log --graph --decorate=auto --abbrev-commit
sync = "!f(){ git status;branches=`git ls-remote --heads|cut -f3- -d/`;for brnch in $branches;do echo -e \\nSyncing $brnch;git checkout $brnch;git pr;done;}; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment