- Git: http://git-scm.com/downloads
- Related Tutorial: https://help.github.com/articles/set-up-git
Last active
October 22, 2023 12:32
-
-
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)
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
if [ -f ~/.git-prompt.sh ]; then | |
source ~/.git-prompt.sh | |
export PS1='user[\W]$(__git_ps1 "(%s)"): ' | |
fi | |
alias htdocs='cd /Applications/MAMP/htdocs' |
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
[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 |
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
# 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