git config --global alias.wip '!git add . && git commit -m "WIP"'
git config --global alias.df diff
git config --global alias.rs restore
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.last 'log -1 HEAD'
git config --global alias.visual '!gitk'
git config --global alias.ulast 'reset --soft HEAD~1' //reset last commit local
git config --global alias.ops 'reset HEAD~'
git config --global alias.nah '!git reset HEAD~ && git restore .' // restatura ultimo commit e defaz alteracao
git config --global alias.cp cherry-pick
git config --global alias.backci reset --hard {hash-commit} // desfaz o git ops, aplica o commit
//////// alias do ione https://ionixjunior.dev/boost-your-git-productivity-with-aliases-start-saving-time-today/
[alias] st = status ci = commit br = branch cia = commit --amend cian = commit --amend --no-edit df = diff -w dfword = diff -w --word-diff dft = "!f() { GIT_EXTERNAL_DIFF=difft git diff -w --ext-diff $@; }; f" co = checkout sw = switch cl = clean -dfX lg = log --oneline --graph lga = log --oneline --graph --all cp = cherry-pick ft = fetch origin -p parent = "!git show-branch | grep '' | grep -v "$(git rev-parse --abbrev-ref HEAD)" | head -n1 | sed 's/.\[\(.\)\]./\1/' | sed 's/[\^~].*//' #" lgd = log --pretty=format:'%h %ad | %s%d [%an]' --date=short sh = "!f() { GIT_EXTERNAL_DIFF=difft git show -p --ext-diff $@; }; f"