Skip to content

Instantly share code, notes, and snippets.

@bismarckjunior
Last active February 7, 2018 13:54
Show Gist options
  • Save bismarckjunior/e1ee32d4343e747771de54b32dbe4a60 to your computer and use it in GitHub Desktop.
Save bismarckjunior/e1ee32d4343e747771de54b32dbe4a60 to your computer and use it in GitHub Desktop.
Git Configuration
# Git configuration
# Autor: Bismarck Gomes <bismarckgomes@gmail.com>
name="Bismarck Gomes Souza Junior"
email="bismarck@puc-rio.br"
editor="'C:/Program Files/Sublime Text 3/subl.exe' -nw"
p4merge="C:/Program Files/Perforce/p4merge.exe"
# editor="notepad"
# editor="'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nossesion -noPlugin"
# INIT ===============================================================
# User
git config --global user.name "$name"
# E-mail
git config --global user.email "$email"
# EDITOR =============================================================
# Sublime
git config --global core.editor "$editor"
# P4MERGE ============================================================
# Mergetool
git config --global mergetool.keepBackup false
git config --global merge.tool p4merge
git config --global mergetool.p4merge.path "$p4merge"
# Difftool
git config --global difftool.prompt false
git config --global diff.tool p4merge
git config --global difftool.p4merge.path "$p4merge"
# ALIAS ==============================================================
# git s (short status)
git config --global alias.s "status -s"
# git lol (pretty log)
git config --global alias.lol "log --graph --decorate --oneline "
# git lola (pretty log for all commits)
git config --global alias.lola "log --graph --decorate --oneline --all"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment