-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
35 lines (35 loc) · 1.17 KB
/
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
[user]
name = Leandro Guida
email = [email protected]
[core]
autocrlf = input
editor = vim
# Do not use less like pager if the result is not big enough
# https://serebrov.github.io/html/2014-01-04-git-log-and-less-keep-output.html
pager = less -iXFR
[push]
default = simple
autoSetupRemote = true
[color]
ui = auto
[alias]
ls = log --oneline -n 10
lg = log --oneline --decorate --all --graph
st = status
co = checkout
ci = commit -v
cb = checkout -b
unstage = reset HEAD
uncommit = reset --soft HEAD~
branches = for-each-ref --sort=-committerdate --format=\"%(color:bold)%(refname:short)\t%(color:red)%(authorname)\t%(color:white)%(color:blue)%(authordate:relative)\" refs/remotes
prune-local = ! "git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -d"
remove-untracked = ! "git status --short | grep '??'| sed -r 's/\\?\\? (.*)/\\1/' | xargs rm -f"
b = branch
current = rev-parse --abbrev-ref HEAD
fix = commit --amend --no-edit
[protocol]
version = 2
[pull]
rebase = false
[init]
defaultBranch = main