From 60435533d553c22b566644dfdda7499b8d6a7294 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Fri, 12 Jun 2015 19:30:23 +0300 Subject: [PATCH] rc: git squash Closes #72 --- rc/bashrc | 5 +++++ rc/zshrc | 4 ++++ 2 files changed, 9 insertions(+) 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.