Skip to main content

2 posts tagged with "git"

View All Tags

환경별로 다른 git 설정 적용하기

· 2 min read
Haril Song
Owner, Software Engineer at 42dot

TL;DR

  • includeIf 문법을 사용하면 특정 조건을 만족하는 git 설정 파일만 적용할 수 있다.
  • 업무 환경과 개인 환경을 분리하는데 유용하다.

Problems

  • 업무용 개발 환경과 개인 개발 환경이 분리되어 있다.
  • 그런데 global git config 는 개인 환경 기준으로 설정해놓고 사용하다보니 chezmoi 로 설정파일을 동기화할 때 업무 개발환경에 개인 설정이 overwrite 되어 적용되는 문제가 있었다.
  • 어떻게해야 업무 환경과 개인 환경을 안정적으로 분리할 수 있을까?

Making 'diff' More Intuitive, Difftastic

· One min read
Haril Song
Owner, Software Engineer at 42dot

Overview

Difftastic is a tool designed to make using git diff more convenient. It can be very useful for those who frequently use the git diff command in the terminal.

Usage

brew install difftastic

Global setting:

git config --global diff.external difft

Now, when you use the git diff command, you can see much more intuitive diff results compared to before.

image

Reference