-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
58 lines (57 loc) · 2.17 KB
/
gitconfig
File metadata and controls
58 lines (57 loc) · 2.17 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[user]
name = Wasif Malik
email = wmalik@gmail.com
[github]
user = wmalik
[core]
editor = vim
quotepath = false
excludesfile = ~/.gitignore
[color "status"]
added = green
changed = blue bold
untracked = red
[alias]
s = status
sb = status -sb
br = branch --sort=committerdate
ci = commit
fup = commit --fixup
ch = cherry-pick
cp = cherry-pick
co = checkout
wc = whatchanged
ui = update-index
last = log -1 HEAD
lg = log --graph --decorate --pretty=format:'%C(blue)%h%Creset %C(red)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset%n' --abbrev-commit --date=relative
today = diff --stat @{12am}..HEAD
d = difftool
hub = !echo "https://github.com/`git config remote.origin.url`" | sed "s/git@github.com://g" | xargs firefox
pulls = !echo "https://github.com/`git config remote.origin.url`/pulls" | sed "s/git@github.com://g" | sed "s/\\\\.git//g" | xargs firefox
issues = !echo "https://github.com/`git config remote.origin.url`/issues" | sed "s/git@github.com://g" | sed "s/\\\\.git//g" | xargs firefox
projects = !echo "https://github.com/`git config remote.origin.url`/projects" | sed "s/git@github.com://g" | sed "s/\\\\.git//g" | xargs firefox
actions = !echo "https://github.com/`git config remote.origin.url`/actions" | sed "s/git@github.com://g" | sed "s/\\\\.git//g" | xargs firefox
circle = !echo "https://circleci.com/gh/`git config remote.origin.url`" | sed "s/git@github.com://g" | sed "s/.git//g" | xargs firefox
url =!sh -c 'HEAD=`git rev-parse HEAD` && SHA1=`[ "$0" = "sh" ] && echo $HEAD || echo $0` && echo `git hub`"/commit/"${SHA1}'
travis = !git remote -v | grep push | awk '{print $2}' | awk -F: '{print $2}' | awk -F. '{print abc}'
prom = pull --rebase origin main
prod = pull --rebase origin develop
stats = shortlog -sne
staged = diff --staged
df = diff --stat
[rebase]
autoSquash = true
[diff]
tool = vimdiff
[push]
default = current
[interactive]
# needs a perl module, which can be installed by running as root:
# cpan Term::ReadKey
singleKey = yes
[web]
browser = firefox
[browser "firefox"]
cmd = /usr/bin/firefox
[init]
templatedir = ~/.git_template