Skip to content

Instantly share code, notes, and snippets.

@milmazz
Created April 6, 2010 03:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milmazz/357173 to your computer and use it in GitHub Desktop.
Save milmazz/357173 to your computer and use it in GitHub Desktop.
Configuration files for Git
[user]
name = Milton Mazzarri
email = milmazz@gmail.com
[diff]
external = gitdiff
[pager]
diff =
[color]
status = auto
branch = auto
ui = auto
interactive = auto
pager = true
[color "status"]
added = green
changed = yellow
untracked = red
[color "branch"]
current = green reverse
local = green
remote = yellow
[core]
excludesfile = /home/milmazz/.gitignore
[alias]
plog = log --pretty=tformat:'%h %Cblue%cr%Creset %cn %Cgreen%s%Creset' --graph
st = status
di = diff
co = checkout
ci = commit
br = branch
sta = stash
[github]
user = milmazz
token = ...
*.pyc
*.swp
*.debhelper
*~
*#
\.#*
*.bak
*.mo
_build
_static
_templates
build/
dist/
tweepy.egg-info/
#!/bin/sh
vimdiff "$2" "$5"
@flaper87
Copy link

flaper87 commented Apr 7, 2010

Quizás te interesen estos alias para el .gitconfig:

st = status
di = diff
co = checkout
ci = commit
br = branch
sta = stash

Saludos

@milmazz
Copy link
Author

milmazz commented Apr 7, 2010

Agregado, muchas gracias por tu comentario.

@edgar
Copy link

edgar commented Jun 6, 2010

Los alias estan comodos, yo aplique la misma del diff pero para meld

Aqui el script que estoy usando para desplegar en el bash prompt el nombre del branch en el que estas (y colorizado para indicar si hay cambios o no), a mi me es muy util (no recuerdo el link original del gist)

http://gist.github.com/428029

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment