Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [user]
- name = brentk
- email = brenttkelly@gmail.com
- [push]
- default = simple
- [color]
- ui = auto
- [color "branch"]
- current = yellow reverse
- local = yellow
- remote = green
- [color "diff"]
- meta = yellow bold
- frag = magenta bold
- old = red bold
- new = blue bold
- [color "status"]
- added = yellow
- changed = green
- untracked = cyan
- [alias]
- # Common typos
- idff = diff
- dff = diff
- tdiff = diff
- # Quick shortcuts
- st = status
- co = checkout
- br = branch
- # Diff current branch with master
- mdiff = diff master
- # List files different from master with +++/--- summary of changes
- names = "!f(){ git mdiff --stat=$(tput cols) ;};f"
- #names = diff master --stat
- #names = diff master --name-only
- # List commit history with file changed in each commit ( with +++/--- summary of changes)
- lognames = "!f(){ git log --stat=$(tput cols) ;};f"
- #lognames = log --name-only
- # Show my commits
- logme = log --author=brent
- # Don't remember what this was, maybe list tags?
- tagcommit = rev-list -n 1
- # -c adds diffs for merge commits
- logdiff = log -p -c
- # Ignore and stop ignoring changes to a file
- ignore = update-index --assume-unchanged
- unignore = update-index --no-assume-unchanged
- # Bring current branch up to speed with master
- update = !git pull && git merge master
- # creates a branch, checks it out, and pushes it to the git server in one command
- crbr = "!f(){ git branch $1; git checkout $1; git push -u origin $1; };f"
- # searches for string in branch names
- brsearch = "!f(){ git br -a | grep -i $1;};f"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement