Skip to content

Instantly share code, notes, and snippets.

@neo
Last active November 30, 2022 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neo/313eab8bffbb90bef8a39804f06f0999 to your computer and use it in GitHub Desktop.
Save neo/313eab8bffbb90bef8a39804f06f0999 to your computer and use it in GitHub Desktop.
Git Global Configs
git config --global user.name "Neo"
git config --global user.email "neo.li@jam3.com"
git config --global push.default current
git config --global commit.gpgsign true
git config --global credential.helper store
@neo
Copy link
Author

neo commented May 25, 2018

@neo
Copy link
Author

neo commented Mar 6, 2019

@neo
Copy link
Author

neo commented May 13, 2019

Mac Keychain

git credential-osxkeychain
git config --global credential.helper osxkeychain

@neo
Copy link
Author

neo commented May 13, 2019

@neo
Copy link
Author

neo commented Dec 29, 2019

WSL

git config --global credential.helper "/mnt/c/Program\\ Files/Git/mingw64/libexec/git-core/git-credential-manager.exe"

@neo
Copy link
Author

neo commented Nov 30, 2022

Auto Squash

git config --global rebase.autosquash true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment