Skip to content

Instantly share code, notes, and snippets.

@vucalur
Created June 8, 2012 08:14
Show Gist options
  • Save vucalur/2894427 to your computer and use it in GitHub Desktop.
Save vucalur/2894427 to your computer and use it in GitHub Desktop.
my git settings, based on ralfebert's ones
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\[\033[33m\] $(__git_ps1 "(%s)")\[\033[00m\]$ '
alias d='git diff --word-diff $@'
alias s='d; echo -e "\n"; git status -sb'
alias st='d; echo -e "\n"; git status -b'
alias b='git branch -avv'
alias pl='git pull -v'
alias ph='git push -v'
alias a='git add $@'
alias c='git commit -v $@'
alias ac='git add .;c $@'
alias lg='git lg'
function git_here() {
git init
echo "*~ *.out log tmp db/*.sqlite3 nbproject/private bin build .DS_Store" | tr " " "\n" > .gitignore
git add .gitignore
git commit -m "initial project setup"
}
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
[user]
name = John Doe
email = [email protected]
[core]
excludesfile = /home/wojtek/.gitignore_global
editor = nano -Y patch
[giggle]
main-window-maximized = true
main-window-geometry = 0x0+0+0
file-view-vpane-position = 878
main-window-view = HistoryView
history-view-vpane-position = 351
[color]
ui = auto
interactive = auto
status = auto
branch = auto
[alias]
ch = checkout
lg = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr %an)%Creset' --abbrev-commit --date=relative
lol = log --pretty=oneline --abbrev-commit --graph --decorate
all = log --pretty=oneline --abbrev-commit --graph --decorate --all
wipe = "!git reset --hard;git clean -fd"
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# added by Wojtek :
*.out
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment