Loading tutorials
git config command itself, which reads and writes those files for you.3 min readgit config reads and writes settings, which the previous chapter covered. Three settings are worth configuring on every new machine: who you are, which editor Git opens, and what the first branch of a new repository is calle3 min readstatus, checkout, branch and log do. It also assumes you know that git config --global writes to your personal config file, which the earlier chapters on scopes and the git config command covered.3 min readgit config --global and know what the [alias] section of ~/.gitconfig looks like. You should also know what git log, git status and git restore do. Here you will build aliases that carry your preferred options, then build new aliases on top of existing on2 min read~/.gitconfig and run git config. It also assumes you have written simple aliases such as st = status -sb. Here you will learn how to run arbitrary shell commands from an alias.2 min read! runs in the shell. Here you will learn how to pass arguments to those shell aliases, and why a function is often the right tool.3 min readgit config and that you know the ! prefix runs a command in the shell. Aliases are convenient, but they have fixed limits, and a few of those limits fail without any error message.3 min readgit config writes to the global file. The settings below change the daily commands you run most often.3 min readmerge.conflictStyle, diff.colorMoved and rerere.enabled.3 min read~/.gitconfig, know the difference between global and local scope, and have already set user.name and user.email. You will learn how to load extra configuration only for repositories in certain directories.3 min readgit config read and write commands, and how includeIf works. Here you will learn to answer one question: why does this setting have this value?3 min read~/.gitconfig with aliases and settings, and that you know the scopes (system, global, local) and how includeIf works. The goal is to carry that setup to a new laptop or server without copying files by hand and without leaking anything that belongs 3 min read