-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
25 lines (25 loc) · 815 Bytes
/
.gitconfig
File metadata and controls
25 lines (25 loc) · 815 Bytes
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
[user]
name = Mitchell Slager
email = mslager92@gmail.com
[branch]
autoSetupRebase = always
[rebase]
autoStash = true
[pull]
rebase = true
[github]
user = mitchellslager
[commit]
gpgsign = false
[alias]
wip = !git add -A && git commit -m "WIP"
undo = reset HEAD^ --mixed
changelog = !"git log --oneline $(git describe --tags --abbrev=0)...master | awk '{$1=\" -\"; print $0}'" # prints a list of commits
changes = !"git changelog | pbcopy && code CHANGES" # paste the list of commits to the `CHANGES` file in VS Code editor
changelogmain = !"git log --oneline $(git describe --tags --abbrev=0)...main | awk '{$1=\" -\"; print $0}'"
changesmain = !"git changelogmain | pbcopy && code CHANGES"
[init]
defaultBranch = main
[core]
editor = code --wait
excludesfile = ~/.gitignore_global