From bf827f100e437b16e62322f7d5c109a6c7d7873c Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Sun, 19 Jan 2020 17:59:16 -0600 Subject: [PATCH] Added some new git aliases Don't really use the staged one too much yet, but I use the heck out of the fetch origin master:master as it allows me to then rebase my current working branch without having to switch from it and back to it. --- aliases | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aliases b/aliases index c108024..e46577d 100644 --- a/aliases +++ b/aliases @@ -42,7 +42,9 @@ alias gcm='git checkout master' alias gco='git checkout' alias fgco='git checkout $(git branch | sed "s/\*//" | fzf)' alias gd='git diff' +alias gds='git diff --staged' alias gf='git fetch' +alias gfm='git fetch origin master:master' alias gl='git pull origin $(git_branch)' alias glg='git log' alias gm='git merge'