git
Install with brew or apt-get or something similar.
git clone https://github.com/tregusti/dotfiles ~/.dotfiles~/.dotfiles location is mandatory for now.
cd ~/.dotfiles
./install.sh~/.gitconfig is a wrapper that includes dots/common.gitconfig. It also
includes:
~/.gitconfig.localif present.~/.gitconfig.workif in a work repo~/.gitconfig.personalif in a personal repo
See .gitconfig for details.
For signing commits, see example config.
SSH keys are solely managed by 1Password. Setup ~/.ssh/config to point at the
1Password agent, which holds the private keys and signs on demand:
Host *
IdentityAgent "~/Library/Group Containers/<XXXXXXX>.com.1password/t/agent.sock"
On a new machine:
- Enable the 1Password SSH agent (Settings → Developer → SSH Agent).
- Create a new per-machine key in 1Password (one key per machine, clearly named).
- Add its public key to GitHub as an Authentication key (and a Signing key, if signing).