Last active
October 13, 2023 01:47
-
-
Save grammy-jiang/86937948e5f94992aeb0930df85c3e7c to your computer and use it in GitHub Desktop.
git configurations
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
# Download the file: | |
wget --output-document .gitignore https://www.toptal.com/developers/gitignore/api/linux,windows,macos,vim,emacs,jetbrains+all,visualstudiocode,c,c++,go,java,node,python,rust,helm,bazel |
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
# URL Original: https://gist.githubusercontent.com/grammy-jiang/86937948e5f94992aeb0930df85c3e7c/raw/gitconfig.system.ini | |
# URL Shorten: https://bit.ly/3ufEQSx | |
# Usage: | |
# sudo wget --output-document /etc/gitconfig https://bit.ly/3ufEQSx | |
# Refer to: | |
# https://git-scm.com/docs/git-config | |
# https://www.git-scm.com/book/en/v2/Customizing-Git-Git-Configuration | |
[color] | |
branch = auto | |
diff = auto | |
interactive = auto | |
pager = true | |
status = auto | |
ui = true | |
[core] | |
autocrlf = input | |
editor = vim | |
[credential] | |
helper = store | |
[diff] | |
tool = vimdiff | |
[difftool] | |
prompt = false | |
[help] | |
autocorrect = 50 | |
[merge] | |
tool = vimdiff | |
[mergetool] | |
prompt = false |
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
# URL Original: https://gist.githubusercontent.com/grammy-jiang/86937948e5f94992aeb0930df85c3e7c/raw/gitconfig.user.ini | |
# URL Shorten: https://bit.ly/3KZrCjQ | |
# Usage: | |
# wget --no-cache --output-document $HOME/.gitconfig https://bit.ly/3KZrCjQ | |
# Refer to: | |
# https://git-scm.com/docs/git-config | |
# https://www.git-scm.com/book/en/v2/Customizing-Git-Git-Configuration | |
[commit] | |
gpgSign = true | |
template = ~/.gitmessage | |
[init] | |
defaultBranch = master | |
templateDir = ~/.git-template | |
[tag] | |
gpgSign = true | |
[user] | |
email = [email protected] | |
name = Grammy Jiang | |
signingkey = 9721CF4CA0C17FE3 |
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
# <type>: (If applied, this commit will...) <subject> (Max 50 char) | |
# |<---- Using a Maximum Of 50 Characters ---->| | |
# Explain why this change is being made | |
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
# Provide links or keys to any relevant tickets, articles or other resources | |
# Example: Github issue #23 | |
# --- COMMIT END --- | |
# Type can be | |
# feat (new feature) | |
# fix (bug fix) | |
# refactor (refactoring production code) | |
# style (formatting, missing semi colons, etc; no code change) | |
# docs (changes to documentation) | |
# test (adding or refactoring tests; no production code change) | |
# chore (updating grunt tasks etc; no production code change) | |
# -------------------- | |
# Remember to | |
# - Capitalize the subject line | |
# - Use the imperative mood in the subject line | |
# - Do not end the subject line with a period | |
# - Separate subject from body with a blank line | |
# - Use the body to explain what and why vs. how | |
# - Can use multiple lines with "-" for bullet points in body | |
# -------------------- | |
# For updated template, visit: | |
# https://gist.github.com/adeekshith/cd4c95a064977cdc6c50 | |
# Licence CC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
Relate gist: