-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdot_gitconfig
36 lines (34 loc) · 1.24 KB
/
dot_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
# This is Git's per-user configuration file.
# Please adapt and uncomment the following lines:
[user]
name = badumbatish
email = [email protected]
[alias]
lg = log --name-status --graph --color --pretty=format:'%Cred%h%Creset - %Cred%H%Creset - %Cgreen%as%Creset - %C(yellow)%d%Creset %+C(bold blue)%an%Creset - %Cgreen%s%Creset '
sts = status
co = checkout
commit-with-prefix = "!f() { \
prefix=$1; \
shift; \
if [ $# -eq 0 ]; then \
echo \"Enter the git commit $prefix description: \"; \
read description; \
else \
description=\"$*\"; \
fi; \
git commit -m \"$prefix: $description\"; \
}; f"
c = "!f() { if [ $(basename $(pwd)) = 'gccrs' ]; then git gcc-commit-mklog -s; else git commit; fi; }; f"
aoe = "!git commit --amend --no-edit"
fix = "!git commit-with-prefix FIX"
feat = "!git commit-with-prefix FEAT"
docs = "!git commit-with-prefix DOCS"
refactor = "!git commit-with-prefix REFACTOR"
style = "!git commit-with-prefix STYLE"
test = "!git commit-with-prefix TEST"
ci = "!git commit-with-prefix CI/CD"
brsel = "!git branch | fzf | pbcopy"
[init]
defaultBranch = main
[core]
hooksPath = ~/.git-hooks