forked from Autodesk/enterprise-config-for-git
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.include
105 lines (88 loc) · 3.92 KB
/
config.include
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[core]
# Enable file system cache on Windows (no effect on OS X/Linux)
# c.f. https://groups.google.com/forum/#!topic/git-for-windows/9WrSosaa4A8
fscache = true
[help]
autocorrect = 1
[color]
diff = auto
status = auto
branch = auto
ui = true
[submodule]
fetchJobs = 0
# Configure pull to fetch-and-rebase rather than fetch-and-merge.
# Also, prevent these rebases from inlining an existing local merge.
# See this article for a thorough explanation:
# https://medium.com/@porteneuve/getting-solid-at-git-rebase-vs-merge-4fa1a48c53aa#.ntv2atccl
##[pull]
## rebase = preserve
[rebase]
autoStash = true
# Push to a matching branch name, creating it if necessary
[push]
default = current
# Clean up remote branches when fetching
[fetch]
prune = true
###############################################################################
# Configure Git LFS
# c.f. https://git-lfs.github.com/
###############################################################################
[lfs]
batch = true
ConcurrentTransfers = 10
[lfs "transfer"]
maxretries = 10
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
process = git-lfs filter-process
required = true
###############################################################################
# Configure push protection to public Git hosting services
###############################################################################
[url "/// ATTENTION /// Are you sure you want to push to public github.com? To override this warning run: 'git emc enable-public-push github.com"]
pushInsteadOf = "https://github.com"
[url "/// ATTENTION /// Are you sure you want to push to public github.com? To override this warning run: 'git emc enable-public-push github.com"]
pushInsteadOf = "[email protected]"
[url "/// ATTENTION /// Are you sure you want to push to public bitbucket.org? To override this warning run: 'git emc enable-public-push bitbucket.org"]
pushInsteadOf = "https://bitbucket.org"
[url "/// ATTENTION /// Are you sure you want to push to public bitbucket.org? To override this warning run: 'git emc enable-public-push bitbucket.org"]
pushInsteadOf = "[email protected]"
[url "/// ATTENTION /// Are you sure you want to push to public gitlab.com? To override this warning run: 'git emc enable-public-push gitlab.com"]
pushInsteadOf = "https://gitlab.com"
[url "/// ATTENTION /// Are you sure you want to push to public gitlab.com? To override this warning run: 'git emc enable-public-push gitlab.com"]
pushInsteadOf = "[email protected]"
[alias]
st=status
br=branch
lol = "log --pretty=oneline --abbrev-commit --graph --decorate"
prlog = "log --pretty=oneline --abbrev-commit --graph --decorate --first-parent"
###############################################################################
# Enterprise Config setup command
###############################################################################
emc = "!f() { \
KIT_PATH=$(dirname \"$(git config include.path)\") && \
COMMAND=$1 && \
if [ -n \"$COMMAND\" ]; then \
shift 1; \
fi && \
if [ -z \"$COMMAND\" ] || [ \"$COMMAND\" = \"setup\" ]; then \
TMP_SETUP=$(mktemp -t git-enterprise-kit.XXXXXX) && \
cp \"$KIT_PATH/setup.sh\" \"$TMP_SETUP\" && \
bash \"$TMP_SETUP\" \"$KIT_PATH\" \"$@\" && \
rm \"$TMP_SETUP\"; \
elif [ \"$COMMAND\" = \"install\" ]; then \
echo \"Enterprise config already installed!\"; \
elif [ -e \"$KIT_PATH/$COMMAND.sh\" ]; then \
bash \"$KIT_PATH/$COMMAND.sh\" \"$@\"; \
else \
echo \"Enterprise Config command '$COMMAND' not found.\"; \
fi \
}; f"
###############################################################################
# GitHub for Windows
###############################################################################
[ghfw]
disableverification = true