Last active
September 1, 2020 09:44
-
-
Save david-romero/e8f6f3abbcfd9f8a6316acf5d615680c to your computer and use it in GitHub Desktop.
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
[user] | |
name = David Romero | |
[alias] | |
# one-line log | |
l = log --pretty=format:%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn] --decorate --date=short | |
plog = log --graph --pretty='format:%C(red)%d%C(reset) %C(yellow)%h%C(reset) %ar %C(green)%aN%C(reset) %s' | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
hist = log --pretty=format:'%C(yellow)[%ad]%C(reset) %C(green)[%h]%C(reset) | %C(red)%s %C(bold red)[%an]%C(reset) %C(white)%d%C(reset)' --graph --date=short | |
a = add | |
ap = add -p | |
c = commit --verbose | |
ca = commit -a --verbose | |
cm = commit -m | |
cam = commit -a -m | |
m = commit --amend --verbose | |
d = diff | |
dt = difftool | |
ds = diff --stat | |
dc = diff --cached | |
s = status -s | |
co = checkout | |
cob = checkout -b | |
# list branches sorted by last modified | |
b = !git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--' | |
# list aliases | |
la = !git config -l | grep alias | cut -c 7- | |
#branches | |
develop = !git checkout develop && git pull origin develop | |
master = !git checkout master && git pull origin master | |
[fetch] | |
prune = true | |
[commit] | |
template = /home/david/.gitmessage | |
[credential] | |
helper = store |
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
[########-XXX] Issue identifier | |
Why: | |
* | |
This change addresses the need by: | |
* | |
# 50-character subject line | |
# | |
# 72-character wrapped longer description. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment