Created
January 2, 2018 15:17
-
-
Save DanielKotik/a4f9300fa29de952565cee6f7072ff70 to your computer and use it in GitHub Desktop.
.gitconfig with useful aliases
This file contains 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
[user] | |
name = .... | |
email = .... | |
[color] | |
ui = auto | |
diff = auto | |
status = auto | |
branch = auto | |
[push] | |
default = simple | |
[core] | |
autocrlf = input | |
filemode = false | |
editor = vim | |
[alias] | |
gr = log --graph --decorate --oneline # show pretty graph | |
soa = !git remote update && git status # state of affairs | |
# checkout Gitlab merge requests using `git mr <remote> <x>` (x is the MR number) | |
mr = !sh -c 'git fetch $1 merge-requests/$2/head:mr-$1-$2 && git checkout mr-$1-$2' - | |
[colors] | |
ui = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment