-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
37 lines (27 loc) · 936 Bytes
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[alias]
# View the current working tree status using the short format
s = status -s
# View abbreviated SHA, description, and history graph of the latest 20 commits
l = log --pretty=oneline -n 20 --graph --abbrev-commit
# Switch to a branch, creating it if necessary
co = "!f() { git checkout -b \"$1\" 2> /dev/null || git checkout \"$1\"; }; f"
# Color graph log view
graph = log --graph --color --pretty=format:"%C(yellow)%H%C(green)%d%C(reset)%n%x20%cd%n%x20%cn%x20(%ce)%n%x20%s%n"
# List contributors with number of commits
contributors = shortlog --summary --numbered
# Show verbose output about tags, branches or remotes
tags = tag -l
branches = branch -a
remotes = remote -v
alias=!git config -l | grep ^alias | cut -c 7- | sort
[user]
name = cbastienbaron
email = "[email protected]"
signingkey = 3F1C80C6
[core]
autocrlf = input
editor = nano
[commit]
gpgsign = false
[color]
ui = true