mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
add gitclean alias
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
This commit is contained in:
parent
4fb40a1f04
commit
5c71237045
1 changed files with 3 additions and 0 deletions
|
|
@ -170,6 +170,9 @@ alias gitk-entier-history='gitk --all $(git log -g --pretty=format:%h)'
|
|||
compdef _git gitk='gitk'
|
||||
# Note: if the commit has been cleaned my 'git gc', the dangling commits older than 2 weeks may have been deleted
|
||||
|
||||
# Clean
|
||||
# Remove all .orig, .BASE.*, .REMOTE.*, .LOCAL.* files
|
||||
alias gclean='find . -name "*.orig" -or -name "*.REMOTE.*" -or -name "*.LOCAL.*" -or -name "*.BASE.*" -delete'
|
||||
|
||||
# Edit global Git configuration files
|
||||
alias gitconfig="vim ~/.gitconfig"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue