Skip to content

Instantly share code, notes, and snippets.

@eyalgo
Last active October 6, 2020 10:31
Show Gist options
  • Save eyalgo/48c736a9cb1f6d466b8603851ccb0106 to your computer and use it in GitHub Desktop.
Save eyalgo/48c736a9cb1f6d466b8603851ccb0106 to your computer and use it in GitHub Desktop.
#!/bin/bash
git config --global user.name 'Eyal Golan'
# git config --global user.email "the@email"
git config --global alias.st status
git config --global alias.co checkout
git config --global alias.ci 'commit -v'
git config --global alias.br branch
git config --global alias.cob 'checkout -b'
git config --global alias.por 'push -u origin'
git config --global alias.unstage 'reset HEAD --'
git config --global alias.last 'log -1 HEAD'
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
git config --global commit.template '~/.gitmessage'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment