-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
46 lines (46 loc) · 1.29 KB
/
gitconfig
File metadata and controls
46 lines (46 loc) · 1.29 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
[user]
name = Baylee Schmeisser
email = github.mx@baylee.dev
[includeIf "hasconfig:remote.*.url:git@github.com:stytchauth/**"]
path = ~/.gitconfig-stytch
[includeIf "hasconfig:remote.*.url:git@github.com:twilio-internal/**"]
path = ~/.gitconfig-twilio
[include]
path = ~/.gitconfig.local
[core]
editor = vim
excludesfile = ~/.gitignore
autocrlf = input
[color]
ui = auto
[alias]
# Copy current branch name to clipboard 📋
cb = !git rev-parse --abbrev-ref head | pbcopy
# Quick commit without hooks - "work in progress" 🚧
wip = !git commit --no-verify -m \"wip\"
# Stage all changes (including untracked) ✨
aa = add --all
# Interactive staging - choose chunks to add 🔍
ap = add --patch
# Commit with verbose diff view 📝
ci = commit -v
# Amend last commit with current date 🕒
ca = !git commit --amend -v --date=\"$(date +%Y-%m-%dT%H:%M:%S)\"
# Shorthand for checkout 🔄
co = checkout
# Detailed log with stats and signatures 📜
lg = log --stat --summary --show-signature
# Set upstream to origin/current-branch 🔗
track = !git branch --set-upstream-to=origin/$(git rev-parse --abbrev-ref HEAD)
[push]
default = current
[pull]
rebase = false
[fetch]
prune = true
[init]
defaultBranch = main
[pager]
branch = false
[rebase]
autosquash = true