Last active
April 28, 2025 08:40
-
-
Save debuti/2faad19a4a0a82b31b5cde848f6352c3 to your computer and use it in GitHub Desktop.
My gitconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
email = [email protected] | |
name = Your name | |
[credential] | |
helper = store | |
[push] | |
default = simple | |
[diff] | |
tool = meld | |
[difftool] | |
prompt = false | |
[difftool "meld"] | |
cmd = /usr/bin/meld "$LOCAL" "$REMOTE" | |
[merge] | |
tool = meld | |
[mergetool "meld"] | |
cmd = meld "$LOCAL" "$BASE" "$REMOTE" --output "$MERGED" | |
[alias] | |
st = "status" | |
ci = "commit" | |
co = "checkout" | |
lg = !"git lg1 --date-order" | |
lg1 = !"git lg1-specific --all" | |
lg2 = !"git lg2-specific --all" | |
lg3 = !"git lg3-specific --all" | |
lg1-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' | |
lg2-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' | |
lg3-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)' | |
branches-of-commit = !"git branch -a --contains" | |
find = !"f() { git grep \"$1\" $(git rev-list --all); }; f" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment