Every time I accidentally git commit --amend
instead of a normal git commit I have to google git reset --soft HEAD@{1}
to save the day.
Imagine you have a file called foo.txt
and your Git history looked like this:
A -> B -> C (HEAD)
#!/usr/local/bin/bash | |
# Add or remove keywords here | |
KEYWORDS_REGEX="var_dump\(|die\(|Zend_Debug::|print_r\(|console\.(debug|info|log|warn)\(" | |
# Add extensions to check here | |
EXTENSIONS_REGEX="(.php$|.phtml$|.js$|.html$)" | |
ERRORS_BUFFER="" | |
TEXT_DEFAULT="\\033[0;39m" | |
TEXT_INFO="\\033[1;32m" | |
TEXT_ERROR="\\033[1;31m" |
source ~/.git-completion.sh | |
alias gco='git co' | |
alias gci='git ci' | |
alias grb='git rb' | |