-
Notifications
You must be signed in to change notification settings - Fork 3
Git Alias
Roger Xu edited this page Nov 2, 2016
·
3 revisions
$ git config --global alias.logg 'log --oneline --decorate --graph --all'Run this command
$ git loggWe need to fetch the changes from remote repository and remove deleted remote branches in local repository.
Add a Git alias named cleanup in the global configuration file <USER_HOME>/.gitconfig.
[alias]
cleanup = !git fetch origin && git remote prune origin
Run this command
$ git cleanupGraphic log
alias.logg=log --oneline --decorate --graph --allCheckout
alias.co=checkoutCleanup
alias.cleanup=fetch --prune originls
alias.ls=log --pretty=format:"%C(yellow)%h %Cgreen%ai%Cred%d %Creset%s %Cblue[%cn]" --decoratell
alias.ll=log --pretty=format:"%C(yellow)%h %Cgreen%ai%Cred%d %Creset%s %Cblue[%cn]" --decorate --numstatFind File
alias.f=!git ls-files | grep -iFind in Files
alias.gr=grep -Ii