Skip to content

Instantly share code, notes, and snippets.

@hofmannsven
Last active October 22, 2023 12:32
Show Gist options
  • Save hofmannsven/6814278 to your computer and use it in GitHub Desktop.
Save hofmannsven/6814278 to your computer and use it in GitHub Desktop.
This is my global Git/Bash userprofile. All files are named with a dot at the beginning (e.g. ~/.bash_profile, ~/.git-completion.bash, ~/.git-prompt.sh, ~/.gitconfig, ~/.gitignore_global)
if [ -f ~/.git-prompt.sh ]; then
source ~/.git-prompt.sh
export PS1='user[\W]$(__git_ps1 "(%s)"): '
fi
alias htdocs='cd /Applications/MAMP/htdocs'
[user]
name = username
email = [email protected]
[core]
excludesfile = /Users/username/.gitignore_global
editor = vim
autocrlf = input
whitespace = trailing-space,space-before-tab
[color]
ui = true
[alias]
st = status
co = checkout
ci = commit
br = branch
df = diff
dfs = diff --staged
logg = log --graph --decorate --oneline --abbrev-commit --all
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
stats = log -10 --dirstat=files,1,cumulative --ignore-blank-lines --abbrev-commit --oneline --graph --decorate
[credential]
helper = osxkeychain
[help]
autocorrect = 1
[apply]
whitespace = fix
# OSX
.DS_Store
.DS_Store?
.AppleDouble
.LSOverride
# Thumbnails
._*
ehthumbs.db
Thumbs.db
# Files that might appear on external disk
.Spotlight-V100
.Trashes
# Icon must ends with two \r.
Icon
# PhpStorm
.idea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment