Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [core]
- excludesfile = ~/.gitignore
- autocrlf = input
- editor = vim # If you uses emacs, you are poser!!
- pager = less -R
- [user]
- name = Mauro Baraldi
- email = mauro.baraldi@gmail.com
- [color]
- branch = auto
- diff = auto
- status = auto
- interactive = auto
- [color "branch"]
- current = yellow
- local = blue
- remote = green
- [color "diff"]
- meta = yellow bold
- frag = magenta bold
- old = red bold
- new = green bold
- [diff]
- external = /home/mauro/.hooks/diff.py
- [github]
- user = maurobaraldi
- [status]
- showUntrackedFiles = no
- [alias]
- # Basics
- a = add
- b = branch
- c = commit
- d = diff
- f = fetch
- l = log
- m = merge
- o = checkout
- p = pull
- ps = push
- r = reset
- s = status
- # == Sugar Sintaxes ==
- # branch
- branches = branch -a # List all branches (local + remotes)
- # log
- activity = log --oneline --graph --decorate # Show activity (log) most like gitk deafult view
- history = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
- unadd = git reset HEAD # remove a file from index
- what = "!f() { git log --author=$1; }; f" # Show what was done by user
- between = "!f() { git log --since=$1 --until=$2; }; f" # Show what was done by range date
- files = "!f() { git diff-tree --no-commit-id --name-only -r $1; }; f" # Show files changed in a given commit
- whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
- whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -"
- tagit = "!f() { git tag $(date +'%Y%m%d_%H%M'); }; f"
- goodmorning = "!sh -c 'git checkout develop; git pull; make'"
- merged = branch -a --merged # Show merged branchs (remote/local)
- unmerged = branch -a --no-merged # Show unmerged branchs (remote/local)
- diffs = "!for i in `git diff --name-only`; do git diff $i; done"
- checkallout = "!for i in `git diff --name-only`; do git checkout $i; done"
- sync = "!git pull && git push"
- cam = commit -am
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement