Kaynağa Gözat

feat(git): add `git` config

Joe 1 yıl önce
ebeveyn
işleme
88ff94968d
5 değiştirilmiş dosya ile 80 ekleme ve 1 silme
  1. 1 0
      .config/.gitignore
  2. 6 0
      .config/git/.gitignore
  3. 49 0
      .config/git/config
  4. 22 0
      .config/git/ignore
  5. 2 1
      .github/README.md

+ 1 - 0
.config/.gitignore

@@ -3,3 +3,4 @@
 !.gitignore
 # ...except for these:
 !brew/
+!git/

+ 6 - 0
.config/git/.gitignore

@@ -0,0 +1,6 @@
+# ignore everything...
+*
+!.gitignore
+# ...except for these:
+!config
+!ignore

+ 49 - 0
.config/git/config

@@ -0,0 +1,49 @@
+### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ###
+# config
+#
+# Docs:
+# * https://git-scm.com/docs/git-config
+### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ###
+
+[credential]
+	helper = cache --timeout=18000
+[core]
+	autocrlf = input
+	editor = nvim
+	eol = lf
+[pull]
+	rebase = false
+[init]
+	defaultBranch = master
+[push]
+	autoSetupRemote = true
+[commit]
+	gpgsign = true
+[gpg]
+	format = ssh
+[filter "lfs"]
+	clean = git-lfs clean -- %f
+	smudge = git-lfs smudge -- %f
+	process = git-lfs filter-process
+	required = true
+[blame]
+    file = .git-blame-ignore-revs
+
+[alias]
+    s = status -s
+    l = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
+    d = diff
+
+# Include private configuration. Mostly for setting organization-specific author
+# details. The file looks something like this:
+# ```
+# [includeIf "hasconfig:remote.*.url:git@github.com:example/**"]
+# 	path = config.example
+# ```
+# `config.example` might look like this:
+# ```
+# [user]
+# 	email = user@example.com
+# ```
+[include]
+    path = config.custom

+ 22 - 0
.config/git/ignore

@@ -0,0 +1,22 @@
+### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ###
+# ignore
+#
+# Docs:
+# * https://git-scm.com/docs/gitignore
+### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ###
+
+# Repository configurations
+.git-blame-ignore-revs
+
+# Private
+.env
+
+# Junk
+.DS_STORE
+__pycache__/
+
+# Packages
+node_modules/
+venv/
+.venv/
+

+ 2 - 1
.github/README.md

@@ -23,12 +23,13 @@ The contents of the repository is described below:
 Package list for [Homebrew](https://brew.sh/), the missing package manager for
 MacOS. See the subdirectory's [README.md](./.config/brew/README.md) for details.
 
+</td>
+<td>
 ### [git (`~/.config/git/`)](./.config/git/)
 
 Configuration for [Git](https://git-scm.com/docs/), a free and open source
 distributed version control system.
 
-</td>
 </td>
 <td>
 </td>