-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
41 lines (40 loc) · 1.35 KB
/
.gitconfig
File metadata and controls
41 lines (40 loc) · 1.35 KB
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
38
39
40
41
[core]
autocrlf = input
editor = vi
pager = less -x4
[color]
ui = auto
diff = auto
status = auto
branch = auto
interactive = true
[push]
default = simple
[alias]
logx = log --all --graph --decorate=short --pretty=format:'%w(83)%C(auto)%h %C(yellow)%C(bold)%G?%Creset%C(auto)% an (%ar):% s%n%-d'
co = checkout
staged = diff --staged
initignore = !git init && \
wget -O .gitignore "https://www.gitignore.io/api/java,eclipse,intellij,c,c++,linux,windows,cmake,maven,rails,ruby" && \
echo \"\n.classpath\n.project\n\" >> .gitignore && \
git add .gitignore && \
git commit -m\"[AUTO] Added gitignore\"
diffx = diff --word-diff=color
whatchangedx = whatchanged --oneline --graph
ahead = log --branches --not --remotes --simplify-by-decoration --decorate --oneline
addx = add -N .
s = status
p = add -p
cm = commit -m
append = commit --amend --no-edit
prune-features = !git checkout develop && \
git pull && \
git branch --merged | grep feature/ | xargs -r git branch -d && \
echo "Remaining branches:" && \
git branch
conflicts = diff --name-only --diff-filter=U
prune-branches = !git pull --all --prune && git branch --merged | grep -v '*' | xargs git branch -d
ignore = "!bash -c 'curl -s https://www.gitignore.io/api/$@ >> .gitignore'"
[user]
email = palsivertsen@gmail.com
name = Pal Sivertsen