-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-aliases.ps1
More file actions
19 lines (14 loc) · 994 Bytes
/
install-aliases.ps1
File metadata and controls
19 lines (14 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
git config --global alias.s status
git config --global alias.c "commit -m"
git config --global alias.ac '!sh -c ''git add -A && git commit -m \"$*\"'' -'
git config --global alias.amend = "commit --amend --no-edit"
git config --global alias.history "log --graph --decorate --pretty=format:'%C(auto)%h%C(reset) - %C(bold blue)%an%C(reset): %s %C(dim white)(%ad)%C(reset)' --date=short -10"
git config --global alias.last "log -1 --pretty=format:'%h - %an: %s (%ad)' --date=short"
git config --global alias.h history
git config --global alias.l last
git config --global alias.unstage "!sh -c 'git reset HEAD -- && git status'"
git config --global alias.uncommit "!sh -c 'git reset --soft HEAD~1 && git status'"
git config --global alias.nuke "!sh -c 'git fetch --all --prune && git reset --hard @{u} && git clean -fd && git status'"
git config --global alias.aliases "config --get-regexp ^alias[.]"
Write-Host "Git aliases have been successfully installed."
git aliases