From d1cd023296ca174895b6d3c546c3531506be990f Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 2 May 2016 00:32:59 +0100 Subject: [PATCH] git_pull_reset --- 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 efaa18ea..bac0a023 100644 --- a/etc/profile.d/git.sh +++ b/etc/profile.d/git.sh @@ -5,6 +5,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_pull_reset() { + git fetch --all + git reset --hard origin/master +} + git_log_files() { git log --pretty=format: --name-status } -- 2.47.3