Skip to content

Commit 4993069

Browse files
authored
Add .gitconfig file (#3)
1 parent 4d2c124 commit 4993069

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.gitconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Git config file extending local configuration.
2+
# Should be added to local config:
3+
# ~~~
4+
# git config --local --add include.path ../.gitconfig
5+
# ~~~
6+
7+
# Configure "pre-commit" hook.
8+
# Requires https://github.com/slavcodev/git-hooks
9+
[hooks "pre-commit"]
10+
disallow-commits = disallow-commits/disallow-commits
11+
12+
# Disallow mistakenly commits to master.
13+
[disallow-commits]
14+
branch = master

0 commit comments

Comments
 (0)