Skip to content

Latest commit

 

History

History
87 lines (63 loc) · 3.57 KB

git.md

File metadata and controls

87 lines (63 loc) · 3.57 KB

Must Done Configuration

git config --global user.name ???
git config --global user.email ???
git config --global core.editor vim
git config --global core.quotepath false
git config --global core.safecrlf false
git config --global push.default simple
git config --global rerere.enabled true
git config --global alias.c checkout
git config --global alias.d diff
git config --global alias.dc "diff --cached"
git config --global alias.dw "diff --word-diff"
git config --global alias.l "log --all --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 alias.s status -sb
git config --global alias.reset-permission '!git diff -p -R --no-color | grep -E "^(diff|(old|new) mode)" --color=never | git apply'

Books & Tutorials

Blogs

Key Questions

Best Practices

Work Flows

Utilities

Platforms

Resource Collections

Snippets

  • Exclude files when git diff

    git diff oldBranch newBranch --name-only | egrep -v "(exclude1|exclude2)" | xargs git diff oldBranch newBranch --

Sumup

Git is just a stupid content tracker.

It's used as a SCM, but not really designed as one.

Consider it as a file system.