From: Nicolas Boisselier Date: Sun, 1 May 2016 23:32:59 +0000 (+0100) Subject: git_pull_reset X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=d1cd023296ca174895b6d3c546c3531506be990f;p=nb.git git_pull_reset --- 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 }