feature(git): add git aliases

pull/7/head
Adam Veldhousen 2021-10-22 12:16:57 -05:00
parent fa9be8cec3
commit 4bf7f9db65
Signed by: adam
GPG Key ID: 6DB29003C6DD1E4B
1 changed files with 8 additions and 0 deletions

View File

@ -6,3 +6,11 @@ export GIT_EXTRAS_DIR="${FILES_USER_CONFIG}/git";
[[ -f "${HOME}/.gitconfig" ]] || ln -sf "${FILES_PLUGIN_ROOT}/defaults.d/.gitconfig" "${HOME}/.gitconfig";
files_linkdir "${FILES_PLUGIN_ROOT}/defaults.d" "${GIT_EXTRAS_DIR}" true;
alias gs='git status';
alias gm='git merge --ff-only';
alias gpr='git pull --rebase';
alias gmt='git mergetool';
alias grc='git rebase --continue';
alias gk='git fetch origin; git remote prune origin; gitk --all &';
alias gl='git log --pretty=format:"%h %ar by %an: %s"';