Last active
February 7, 2018 13:54
-
-
Save bismarckjunior/e1ee32d4343e747771de54b32dbe4a60 to your computer and use it in GitHub Desktop.
Git Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Git configuration | |
# Autor: Bismarck Gomes <[email protected]> | |
name="Bismarck Gomes Souza Junior" | |
email="[email protected]" | |
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" | |
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