Skip to content

Instantly share code, notes, and snippets.

@mikejoh
Created January 17, 2018 08:08
Show Gist options
  • Save mikejoh/fbbe16f1d0e3f6d2dad4924c9c672164 to your computer and use it in GitHub Desktop.
Save mikejoh/fbbe16f1d0e3f6d2dad4924c9c672164 to your computer and use it in GitHub Desktop.
A usable git config file.

git config file

  1. Add the below to the following file ~/.gitconfig
[user]
        name = <your name>
        email = <your email address>
[color]
        ui = auto
[alias]
        st = status
        ci = commit
        lg = log --graph --date=relative --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ad)%Creset'
[core]
        editor = atom --wait
        filemode = false
        autocrlf = true
[diff]
        mnemonicPrefix = true
        renames = true
        wordRegex = .
        submodule = log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment