diff --git a/rc/bashrc b/rc/bashrc index 969d1c99..a8084b3f 100644 --- a/rc/bashrc +++ b/rc/bashrc @@ -879,6 +879,11 @@ transmission-magnet () { transmission-remote -l -t $1 -i | grep magnet } +git-squash () { + git reset --soft HEAD~$1 + git commit +} + # .custom if [ -f ~/.custom ]; then source ~/.custom diff --git a/rc/zshrc b/rc/zshrc index 4896fb00..32567d10 100644 --- a/rc/zshrc +++ b/rc/zshrc @@ -868,6 +868,10 @@ transmission-magnet () { transmission-remote -l -t $1 -i | grep magnet } +git-squash () { + git reset --soft HEAD~$1 + git commit +} # Source files for miscannellious modifications.