BIBLIOGRAPHY

xguru. 2025. “Git 코어 개발자는 Git을 어떻게 설정하고 사용할까?” GeekNews. February 26, 2025. https://news.hada.io/topic?id=19441.

관련메타

History

  • [2025-06-05 Thu 14:17] 추가
  • [2025-02-06 Thu 14:55] 내어놓자

Git 코어 개발자는 Git을 어떻게 설정하고 사용할까?

(xguru 2025) xguru 2025

“Pro Git” 저자인 Scott Chacon이 글로벌로 활성화한 몇 가지 Git 설정과 그 이유를 설명설정 중 다수는 실제로 Git 코어 코드베이스를 작업하는 개발자들로부터 배운 것임아래는 Git을 더 좋게 만드는 \textasciitilde/.gitconfig 설정[column] ui = auto [branch] sort = -committerdate [tag] so

2025-02-06 설정파일

[2025-02-06 Thu 15:04]

## Adjust paths if not saved in `~/.config/git/`
 
##########################################
## Identity
##########################################
 
# Add identity to all commits (required for GitHub / GitLab)
[user]
	name = junghan0611
 
	# Use GitHub no-reply email address to keep real address private
	email = "31724164+junghan0611@users.noreply.github.com"
 
	# For signed commits and signed annotated tags
	# https://www.git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work#_signing
	# signingkey = <gpg-key-id>
 
 
## Identity for using GitHub API
[github]
	user = junghan0611
 
	# Use `authinfo.gpg` to store tokens for greater security
	# oauth-token = ghp_verylongtokenwithlotsofrandomlygeneratedcharacters
	# host = api.github.com
 
##########################################
## Git Behaviour
##########################################
 
[core]
	# Set which editor to use for editing commit messages (when not included with -m)
	# VISUAL or EDITOR environment variables also set the choice of editor
	# vi used if not set.  Typical examples are nvim or emacsclient
	# editor = nvim
 
	precomposeunicode = true
 
	# file and directory patterns to ignore across all projects
	attributesfile = ~/.config/git/gitattributes
	excludesfile = ~/.config/git/ignore-global
 
	quotepath = false
 
	# Linux encoding
	autocrlf = input
 
	# Tool to page through long output (e.g. git log). `less` is default
	# pager = less
    pager = delta
 
# [commit]
# 	# Default commit message - useful if team has a commit message policy
# 	template = ~/.config/git/commit-message-template
 
[init]
	# scripts and hooks to add when creating a new local Git repository
	# templateDir = ~/.config/git/repo-template/
	defaultBranch = main
 
[interactive]
    diffFilter = delta --color-only
 
[delta]
    navigate = true  # use n and N to move between diff sections
    features = decorations
    whitespace-error-style = green reverse
    # dark = true      # or light = true, or omit for auto-detection
 
[delta "decorations"]
    commit-decoration-style = bold yellow ul ol
    file-style = bold magenta
    file-decoration-style = magenta ul
 
[merge]
    conflictstyle = zdiff3 # use delta
 
	# Include common parent when merge conflicts arise
	#conflictstyle = diff3
 
[filter "lfs"]
	smudge = git-lfs smudge -- %f
	process = git-lfs filter-process
	required = true
	clean = git-lfs clean -- %f
 
# [fetch]
# 	# Remove deleted remote branches from local repository
# 	prune = true
 
##########################################
## Customise Commands
##########################################
 
# command line shot cuts
# [alias]
# 	branches = branch -av
# 	tags = tag -l
# 	lg = log --graph --decorate --relative-date --oneline
# 	lp = log --graph --pretty=format:'%C(cyan)%h%Creset - %C(bold yellow)%d%Creset %s %C(blue)(%ar) %C(magenta)%an%Creset' --all
# 	sitrep = status -sb
# 	sr = status -sb
# 	word = diff --word-diff
# 	unstage = reset HEAD
# 	empty = "git commit --allow-empty"
 
# 	# delete locate branches merged into the remote
# 	delete-local-merged = "!git fetch && git branch --merged | egrep -v 'master' | xargs git branch -d"
 
# Clone short-cuts
# [url "git@github.com:junghan0611/"]
# 	# git clone practicalli:repo-name
# 	insteadOf = junghan0611:
 
[diff "org"]
   xfuncname = "^(\\*+ +.*|#\\+title:.*)$"
 
[diff "lisp"]
  xfuncname = "^(((;;;+ )|\\(|([ \t]+\\(((cl-|el-patch-)?def(un|var|macro|method|custom)|gb/))).*)$"
 
# [safe]
# 	directory = /storage/emulated/0/Documents/sync/org

git 윈도우즈 환경 설정 파일

 
git config --global user.name "junghan0611"
git config --global user.email 31724164+junghan0611@users.noreply.github.com
git config --global merge.conflictstyle diff3
 
# 인코딩 관련
git config --global core.quotepath false
git config --global core.autocrlf input
 

아카이브

DONE bennyandresen/jujutsu.el