Last active
November 13, 2024 20:30
-
-
Save PecceG2/5d5be259c08d5dfc61597416bc4fe82b to your computer and use it in GitHub Desktop.
Git config for my workspace
This file contains 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
// Git bash as admin | |
git config --global user.name "my super name" | |
git config --global user.email [email protected] | |
git config --global alias.superlog "log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all" | |
git config --global alias.alias "! git config --get-regexp ^alias\. | sed -e s/^alias\.// -e s/\ /\ =\ /" | |
git config --global core.autocrlf false | |
git config --system core.autocrlf false | |
git config --global core.safecrlf false | |
git config --global --add --bool push.autoSetupRemote true | |
// .gitattributes | |
# Default # | |
* text=auto | |
# Git # | |
.gitattributes text | |
.gitignore text | |
# Java # | |
*.java text diff=java | |
*.properties text | |
*.class binary | |
*.jar binary | |
*.war binary | |
*.ear binary | |
# PHP | |
*.php text | |
*.phpt text | |
*.phtml text | |
*.twig text | |
.htaccess text | |
.ht text | |
*.phar binary | |
# Windows # | |
*.bat text eol=crlf | |
*.exe binary | |
*.dll binary | |
# Linux # | |
*.sh text eol=lf | |
*.so binary | |
# Web # | |
*.htm text diff=html | |
*.html text diff=html | |
*.xhtml text diff=html | |
*.css text diff=css | |
*.js text | |
*.json text | |
*.xml text | |
# Multimedia # | |
*.bmp binary | |
*.gif binary | |
*.ico binary | |
*.jpg binary | |
*.jpeg binary | |
*.png binary | |
*.svg text | |
*.tif binary | |
*.tiff binary | |
*.eps binary | |
*.ai binary | |
*.bmp binary | |
*.jng binary | |
*.jp2 binary | |
*.jpx binary | |
*.jxr binary | |
*.pdf binary | |
*.psb binary | |
*.psd binary | |
*.svg text | |
*.svgz binary | |
*.wbmp binary | |
*.webp binary | |
# General # | |
*.cfg text | |
*.csv text | |
*.ini text | |
*.log text | |
*.pdf binary | |
*.sql text | |
*.txt text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment