moving git aliases + adding a few new ones

This commit is contained in:
Rick van Lieshout 2018-08-02 09:59:56 +02:00
parent 889139a906
commit 7226d89031
2 changed files with 4 additions and 6 deletions

View File

@ -26,12 +26,6 @@ alias internalip=$'ip route get 8.8.8.8 | awk \'NR==1 {print $NF}\''
#show 5 most memory consuming apps
alias psmem='ps auxf | sort -nr -k 5 | head -n 5'
#git
alias gitdiff='git diff --name-only --diff-filter=U'
alias status='git status'
alias push='git push'
alias add='git add .'
#dotnet core
alias efupdate="dotnet ef database update"
alias efmigrate="dotnet ef migrations add"

View File

@ -3,3 +3,7 @@
name = Mastermindzh
[alias]
tree = log --graph --decorate --pretty=format:'%ar [%h] %an <%ae> - %s'
graph = log --graph --pretty=format:'%C(bold)%h%Creset%C(magenta)%d%Creset %s %C(yellow)<%an> %C(cyan)(%cr)%Creset' --abbrev-commit --date=relative
stats = !git graph --stat
pushall = !git remote | xargs -L1 git push --all
diffname = !git diff --name-only