-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
28 lines (28 loc) · 943 Bytes
/
gitconfig
File metadata and controls
28 lines (28 loc) · 943 Bytes
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
[user]
name = James Salt
email = saltpy@gmail.com
[merge]
tool = vimdiff
[alias]
# Author of a commit
a = log --format='%an <%ae>'
# Changes in a hash
hc = diff-tree --no-commit-id --name-only -r
# Log
l = log --oneline --decorate
lga = ! git lg --all
lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(black)%s%C(reset) %C(black)- %an%C(reset)'
lgb = ! git lg master..
# Outgoing
o = log --oneline --decorate master..HEAD
# Show Head Master
shm = ! git show $(git log --oneline --decorate master | cut -d " " -f 1)
# Branch Tip hash for Master
btm = ! git log master | head -n 1 | cut -d \" \" -f 2
# List Alias'
la = ! git config -l | grep alias | cut -c 7-
# Git workflow
# Init
gwf-i = !git
[core]
editor = /usr/bin/vim