Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git config #4

Open
dhirschfeld opened this issue Jun 15, 2022 · 4 comments
Open

git config #4

dhirschfeld opened this issue Jun 15, 2022 · 4 comments
Labels
kind: reference This issue is for informational purposes

Comments

@dhirschfeld
Copy link
Member

dhirschfeld commented Jun 15, 2022

git config --global user.name "Dave Hirschfeld"
git config --global user.email "[email protected]"
git config --global pull.ff only
git config --global push.followTags true
git config --global pull.rebase true
git config --global rebase.autoStash true
git config --global submodule.recurse true
git config --global alias.amend 'commit --amend --no-edit'
git config --global alias.edit 'commit --amend --only'
git config --global clone.defaultRemoteName upstream
git config --global push.autosetupremote true
git config --global credential.helper "$(which git-credential-manager)"
git config --global credential.credentialstore cache
git config --global credential.cacheoptions '--timeout=36000 --socket /tmp/.git-credential-cache/socket'
git config --global credential.helper $(get-command git-credential-manager).Path
git config --global credential.credentialStore wincredman
git config --global core.longpaths true
git config --global http.sslbackend schannel
git config --list --show-origin
@dhirschfeld dhirschfeld added the kind: reference This issue is for informational purposes label Jun 15, 2022
@dhirschfeld
Copy link
Member Author

dhirschfeld commented Jun 16, 2022

$email = "[email protected]"
ssh-keygen -t ed25519 -C "${email}"
ssh-add "~/.ssh/id_ed25519"
gh ssh-key add $(Resolve-Path "~/.ssh/id_ed25519.pub").Path
mkdir -p "~/.config/git"
Set-Content -Path "~/.config/git/allowed_signers" -Value "${email} $(cat '~/.ssh/id_ed25519.pub')"
git config --global gpg.format ssh
git config --global user.signingkey "~/.ssh/id_ed25519"
git config --global commit.gpgsign true
git config --global tag.gpgsign true
git config --global gpg.ssh.allowedSignersFile "~/.config/git/allowed_signers"

@dhirschfeld
Copy link
Member Author

dhirschfeld commented Jun 29, 2022

@dhirschfeld dhirschfeld pinned this issue Jul 21, 2024
@dhirschfeld
Copy link
Member Author

Configure delta

git config --global core.pager delta
git config --global interactive.diffFilter 'delta --color-only'
git config --global delta.navigate true
git config --global merge.conflictstyle diff3
git config --global diff.colormoved default
git config --global delta.side-by-side true
git config --global delta.line-numbers true

@dhirschfeld
Copy link
Member Author

git config --global core.editor "code-insiders --wait"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: reference This issue is for informational purposes
Projects
None yet
Development

No branches or pull requests

1 participant