Add git to optional dependencies

Description:

Refer to the official documentation Using chezmoi across multiple machines for guidance.

When attempting to clone dotfiles using chezmoi via SSH with the command:

chezmoi init git@github.com:$GITHUB_USERNAME/dotfiles.git

We may encounter the following error message:

builtin git does not support cloning repos over ssh, please install git

To resolve this issue, we should install the git package from the Arch repository.

Evidently, the git package is an essential requirement for chezmoi to successfully clone dotfiles via SSH.

Considering this, adding it to the optional dependencies is a prudent and advisable choice.

Additional info:

  • package version(s): 2.61.0-1
  • config and/or log files: null
  • link to upstream bug report, if any: null

Steps to reproduce:

  1. run chezmoi init via SSH without git installed.
  2. chezmoi exits, printing a message 'builtin git does not support cloning repos over ssh, please install git'.
  3. install git to fix it.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information