forked from anishathalye/dotfiles_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
30 lines (30 loc) · 940 Bytes
/
gitconfig
File metadata and controls
30 lines (30 loc) · 940 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
26
27
28
29
30
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = Bryan Chen
email = xlchen1291@gmail.com
[core]
excludesfile = /Users/xiliangchen/.gitignore_global
editor = /usr/bin/vim
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
[difftool "sourcetree"]
cmd = "sublime "
path =
[mergetool "sourcetree"]
cmd = "sublime "
trustExitCode = true
[alias]
up = !git fetch && git rebase --autostash FETCH_HEAD && git submodule update
pr = "!f() { git fetch -fu ${2:-upstream} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
pr-clean = "!git checkout master ; git for-each-ref refs/heads/pr/* --format=\"%(refname)\" | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
[submodule]
recurse = true
[push]
followTags = true
autoSetupRemote = true
[init]
defaultBranch = master