Skip to content

Instantly share code, notes, and snippets.

@illucent
Forked from artzub/fix-eol.sh
Created December 23, 2015 14:08
Show Gist options
  • Save illucent/3bb717a59fbe4d7cf113 to your computer and use it in GitHub Desktop.
Save illucent/3bb717a59fbe4d7cf113 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