Saturday, April 26, 2025

git config

 settings in git:




system specific configs are not very often in use. Those are useful if some binary that git is dependent is missing.


Global config is for most of your preferences 

local config - for one-off special case changes.


Reading: git config --global user.name

Setting: git config --global user.name "User Name"


settings written to ~/.gitconfig


List all configs: git config --list

verbose: git config --list --show-origin

more verbose: git config --list --show-origin --show-scope


Unset: git config --local --unset user.name 


.gitattributes

*.js text

*.ps1 eol=crlf

*.sh eol=lf


Filters in fit allow you to securely store secret data in git when pushing and restore it when data is pulled.






No comments:

Post a Comment