[init] defaultBranch = main [column] ui = auto [branch] sort = -committerdate [tag] sort = version:refname [core] pager = delta [interactive] diffFilter = delta --color-only [delta] navigate = true # use n and N to move between diff sections # delta detects terminal colors automatically; set one of these to disable auto-detection # dark = true # light = true [alias] cp = cherry-pick com = commit # Log like "a dog" adog = log --all --decorate --oneline --graph # or like a "dog" (no --all) dog = log --decorate --oneline --graph # or like "all dogs" adogs = log --all --decorate --oneline --graph --stat # Log like a "dog", but only nine commits (dog + [n]ine) dogn = log --decorate --oneline --graph -n9 mine = dog --author=nagee recent = for-each-ref --count=20 --sort=-committerdate refs/heads/ --format=%(refname:short) jira = ! git rev-parse --abbrev-ref HEAD | xargs jira jira-url = ! git rev-parse --abbrev-ref HEAD | xargs jira --url [user] name = nagee elghassein email = {{ .email | quote }} [submodule] recurse = true [push] recurseSubmodules = check autoSetupRemote = true [status] submoduleSummary = true [fetch] prune = true all = true [commit] # Show the changes made when committing. Useful for double checking the # changes made. verbose = true [diff] ignoreSubmodules = dirty algorithm = histogram colorMoved = plain mnemonicPrefix = true renames = true [merge] conflictstyle = zdiff3 [help] autocorrect = prompt [credential "https://github.com"] helper = helper = !/opt/homebrew/bin/gh auth git-credential [credential "https://gist.github.com"] helper = helper = !/opt/homebrew/bin/gh auth git-credential