From 89db99caea8131149265f642cbc5afac4fd9fbce Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 6 Mar 2017 14:49:32 +0000 Subject: [PATCH] etc/profile.d/git.sh --- etc/profile.d/git.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/profile.d/git.sh b/etc/profile.d/git.sh index e35c0c23..459a5e0f 100644 --- a/etc/profile.d/git.sh +++ b/etc/profile.d/git.sh @@ -8,6 +8,11 @@ alias git_grep="git grep --color=auto" alias git_ls_tree="git ls-tree --full-tree -r HEAD" alias git_ls_files="git ls-files" +git_new_branch() { + git checkout -b "$1" + git push -u origin "$1" +} + git_pull_reset() { local branch=$(git branch --list|awk '/\*/{print $2; exit}') [ -n "$1" ] && branch="$1" -- 2.47.3