Skip to main content

2 posts tagged with "git"

View All Tags

Applying Different Git Configurations by Environment

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

TL;DR

  • The includeIf syntax allows you to apply git configuration files only when specific conditions are met.
  • Useful for separating work and personal environments.

Problems

  • Work and personal development environments are separate.
  • However, the global git config is set based on the personal environment, causing personal settings to overwrite work settings when syncing configuration files with chezmoi.
  • How can work and personal environments be stably separated?

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