Jemsu Quartz

Search

Search IconIcon to open search

git

Last updated Apr 3, 2023 Edit Source

Should this be its own tag?

At some place I’d need to collect useful commands, like adding the following to .gitconfig:

1
2
[alias]
	adog = log --all --decorate --oneline --graph

Because it’s useful to git adog sometimes.

Or setting up delta for nicer diffs:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
[pager]
    diff = delta
    log = delta
    reflog = delta
    show = delta

[delta]
    plus-style = "syntax #012800"
    minus-style = "syntax #340001"
    syntax-theme = Monokai Extended
    navigate = true

[interactive]
    diffFilter = delta --color-only

# GPG signing commits

# GitHub Credentials

Currently relying on gh on Linux:

1
2
3
4
5
[credential "https://github.com"]
	helper =
	helper = !/opt/homebrew/bin/gh auth git-credential
[credential "https://gist.github.com"]
	helper = !/opt/homebrew/bin/gh auth git-credential

On macOS (and presumably Windows), we can use system keychains without any headaches.