Skip to content

Instantly share code, notes, and snippets.

@eternal44
Last active April 11, 2016 20:26
Show Gist options
  • Save eternal44/7239646c51d114bb34de to your computer and use it in GitHub Desktop.
Save eternal44/7239646c51d114bb34de to your computer and use it in GitHub Desktop.
James' .gitconfig file
[alias]
co = checkout
ci = commit
st = status
br = branch
lg = log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s[%an]"
type = cat-file -t
dump = cat-file -p
[user]
name = James Youn
email = [email protected]
[core]
editor=vi
excludesfile=~/.gitignore
autocrlf = input
safecrlf = true
[commit]
template = ~/.gitmessage.txt
@eternal44
Copy link
Author

You can open your .gitconfig file by doing the following from the terminal:

$ subl ~/.gitconfig

Feel free to play around with the aliases and change the user info :)

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