Skip to content

Instantly share code, notes, and snippets.

@PecceG2
Last active November 13, 2024 20:30
Show Gist options
  • Save PecceG2/5d5be259c08d5dfc61597416bc4fe82b to your computer and use it in GitHub Desktop.
Save PecceG2/5d5be259c08d5dfc61597416bc4fe82b to your computer and use it in GitHub Desktop.
Git config for my workspace
// 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