Skip to content

Instantly share code, notes, and snippets.

@artzub
Last active November 30, 2016 18:09
Show Gist options
  • Save artzub/7342336 to your computer and use it in GitHub Desktop.
Save artzub/7342336 to your computer and use it in GitHub Desktop.
List of tips on all cases of life
#!/bin/sh
git config core.autocrlf true #or input. I use input for windows in order to always will be LF.
git rm --cached -r .
git reset --hard
#git add .
#git commit -m "Normalize line endings"
#!/bin/sh
git config --global alias.co checkout
git config --global alias.cb "checkout -b"
git config --global alias.chm "checkout master"
git config --global alias.st status
git config --global alias.ai "add -i"
git config --global alias.pofm "push origin +master"
git config --global alias.po "push origin"
git config --global alias.gg 'log --oneline --abbrev-commit --all --graph --decorate --color'
git config --global alias.ggs 'log --color --date-order --graph --oneline --decorate --simplify-by-decoration --all'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment