forked from mikecanz/env
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit-aliases
More file actions
executable file
·20 lines (14 loc) · 788 Bytes
/
git-aliases
File metadata and controls
executable file
·20 lines (14 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
git config --global alias.st "status"
git config --global alias.ci "commit"
git config --global alias.br "branch"
git config --global alias.co "checkout"
git config --global alias.df "diff"
git config --global alias.who "shortlog -s --"
git config --global alias.lg "log -n 20 --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %an' --abbrev-commit --date=relative"
git config --global alias.last "cat-file commit HEAD"
git config --global alias.stc "diff --stat --name-status --cached"
git config --global alias.up "!git remote update ; git gc"
git config --global alias.log1 "log --pretty=oneline --abbrev-commit --decorate"
git config --global alias.lc "log ORIG_HEAD.. --stat --no-merges"
git config --global alias.undo "reset --hard"