-
-
Save Voonder/d5f638b60ca8456691dfa1c6412a264e to your computer and use it in GitHub Desktop.
Sample of git config file (Example .gitconfig, .gitattributes, .gitignore)
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
# Auto detect text files and perform LF normalization | |
* text=auto | |
# Documents | |
*.doc diff=astextplain | |
*.DOC diff=astextplain | |
*.docx diff=astextplain | |
*.DOCX diff=astextplain | |
*.dot diff=astextplain | |
*.DOT diff=astextplain | |
*.pdf diff=astextplain | |
*.PDF diff=astextplain | |
*.rtf diff=astextplain | |
*.RTF diff=astextplain | |
*.md text | |
*.adoc text | |
*.textile text | |
*.mustache text | |
*.csv text | |
*.tab text | |
*.tsv text | |
*.sql text | |
# Graphics | |
*.png binary | |
*.jpg binary | |
*.jpeg binary | |
*.gif binary | |
*.tif binary | |
*.tiff binary | |
*.ico binary | |
# SVG treated as an asset (binary) by default. If you want to treat it as text, comment-out the following line and uncomment the line after. | |
#*.svg binary | |
*.svg text | |
*.eps binary |
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
[alias] | |
lg = "!f() { \ | |
git log --all --color --graph --pretty=format:'%C(bold yellow)<sig>%G?</sig>%C(reset) %C(red)%h%C(reset) -%C(yellow)%d%C(reset) %s %C(green)(%cr) %C(blue)<%an>%C(reset)' | \ | |
sed \ | |
-e 's#<sig>G</sig>#Good#' \ | |
-e 's#<sig>B</sig>#\\nBAD \\nBAD \\nBAD \\nBAD \\nBAD#' \ | |
-e 's#<sig>U</sig>#Unknown#' \ | |
-e 's#<sig>X</sig>#Expired#' \ | |
-e 's#<sig>Y</sig>#Expired Key#' \ | |
-e 's#<sig>R</sig>#Revoked#' \ | |
-e 's#<sig>E</sig>#Missing Key#' \ | |
-e 's#<sig>N</sig>#None#' | \ | |
less -r; \ | |
}; f" | |
[core] | |
attributesFile = ~/.gitattributes | |
autocrlf = false | |
eol = lf | |
editor = | |
excludesfile = ~/.gitignore | |
longpaths = true | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
[color] | |
ui = auto | |
[color "branch"] | |
current = yellow bold | |
local = green bold | |
remote = cyan bold | |
[color "diff"] | |
meta = yellow bold | |
frag = magenta bold | |
old = red bold | |
new = green bold | |
whitespace = red reverse | |
[color "status"] | |
added = green bold | |
changed = yellow bold | |
untracked = red bold | |
[commit] | |
gpgsign = true | |
[gpg] | |
program = C:\\Program Files (x86)\\GnuPG\\bin\\gpg.exe | |
[tag] | |
gpgsign = true | |
[includeIf "gitdir:~/Developer/foo/"] | |
path = ~/.gitconfig-foo | |
[includeIf "gitdir:~/Developer/bar/"] | |
path = ~/.gitconfig-bar |
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
[user] | |
email = | |
name = Julien Normand | |
username = Voonder | |
signingkey = | |
[core] | |
sshCommand = "ssh -i ~/.ssh/id_ed25519_github" |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Temporary files # | |
################### | |
*.swp | |
*.swo | |
*~ | |
# Packages # | |
############ | |
*.7z | |
*.dmg | |
*.gz | |
*.iso | |
*.jar | |
*.rar | |
*.tar | |
*.zip | |
# Logs and databases # | |
###################### | |
*.log | |
*.sql | |
*.sqlite | |
# OS generated files # | |
###################### | |
.DS_Store* | |
ehthumbs.db | |
Thumbs.db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment