Update Git configurations

This commit is contained in:
Bill Niblock 2024-10-12 15:35:58 -04:00
parent f5865c0e06
commit a62bc5c4b8
4 changed files with 24 additions and 52 deletions

17
git/config Normal file
View file

@ -0,0 +1,17 @@
#==========================#
# Global Git Configuration #
#==========================#
[config]
relativePaths=false # Show relative paths with status outputs
[init]
defaultBranch=main # Default branch is 'main' not 'master'
[diff]
algorithm=histogram # Better-sorted output of diffs
[merge]
conflictstyle=diff3 # Use the diff3 merge output
[user] # Default credentials:
name="Bill Niblock" # My name
email="bill@theinternetvagabond.com" # My email address
[includeIf "gitdir:~/Code/nibtech/"] # Over-ride with NibTech credentials
path="~/.config/git/nibtech.conf" # Path to NibTech config file
# another thing!

View file

@ -1,12 +0,0 @@
#============================#
# gitconfig file for niblock #
#============================#
# General Settings:
# Show me absolute paths, not relative paths
# Link to a global excludes file
[status]
relativePaths = false
[core]
excludesFile = ~/.gitignore

View file

@ -1,40 +0,0 @@
# Global gitignore file
# Stolen from octocat: https://gist.github.com/octocat/9257657
# Compiled source #
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Logs and databases #
*.log
*.sql
*.sqlite
# OS generated files #
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# Vim Related #
*.swp
.netrwhist
*.un~
tags

7
git/nibtech.conf Normal file
View file

@ -0,0 +1,7 @@
#===========================#
# NibTech Git Configuration #
#===========================#
[user] # NibTech Credentials:
name="Bill Niblock" # My name
email="bill@niblock.tech" # My email address