This is my git setup for get more productivity and speed in git workflow. Hope you canget something on this repository
- Inspiration, list of modules and solution from craftzdog/dotfiles-public.
- Windows
- Windows (WSL)
- Linux
- macOS
2. Tig
vim ~/.gitconfig
Copy this command and append to file that you open in 1.1
[core]
editor = nvim
[alias]
i = init
a = add
aa = add .
rst = restore
rsta = restore .
st = status
ci = commit
cim = commit -m
t = tag
lp = log --pretty=format:\"%Cgreen%h %Creset%cd %Cblue[%cn] %Creset%s%C(yellow)%d%C(reset)\" --graph --date=relative --decorate --all
llog = log --graph --name-status --pretty=format:\"%C(red)%h %C(reset)(%cd) %C(green)%an %Creset%s %C(yellow)%d%Creset\" --date=relative
d = diff
m = merge
br = branch
bra = branch -a
co = checkout
cob = checkout -b
find = "!f() { git log --pretty=format:\"%h %cd [%cn] %s%d\" --date=relative -S'pretty' -S\"$@\" | peco | awk '{print $1}' | xargs -I {} git diff {}^ {}; }; f"
rma = remote add origin
pa = push --all
pt = push --tags
[diff]
tool = nvimdiff
You can add or see what alias that can use from this
[alias]
<alias> = <full command>
brew install tig
Note
If you don't have Brew, you can get installation tutorial from this chinhchin/Fish-Shell-setup.
You can find usage solution by go to directory that have repository then type "Tig" and press "h"