training-kit icon indicating copy to clipboard operation
training-kit copied to clipboard

Documentation unclear surrounding GitHub Desktop installation and its inclusion (or not) of Git

Open spikysimonw opened this issue 2 years ago • 2 comments

Overview

TL;DR Confusing and misleading information on a) whether or not Git is included as part of a GitHub Desktop install, and b) whether Git is already installed on "most versions of MacOS".

Extra Detail

  • Information in para A conflicts with instruction in para B: "Installing GitHub Desktop will also install the latest version of Git if you don't already have it." vs "You must have Git installed before using GitHub Desktop."

  • Para C states "Most versions of MacOS will already have Git installed" whereas this is only true if Apple's Command Line Developer Tools are optionally installed (and which I suspect is less likely for a user looking at GitHub Desktop installation instructions).

Screenshots

Link A - https://github.com/github/training-kit/blob/master/git-guides/install-git.md#install-git-using-github-desktop Link B - https://docs.github.com/en/desktop/installing-and-configuring-github-desktop/installing-and-authenticating-to-github-desktop/setting-up-github-desktop#part-3-configuring-git Link C - https://github.com/github/training-kit/blob/master/git-guides/install-git.md#install-git-on-mac

Reasoning

Testing suggests a local git install does not get installed as part of an official GitHub Desktop installation on macOS, however instead it seems some form of sandboxed implementation is included (?) as within the GitHub Desktop app itself it can perform git operations without any local git install being available. Suggest this needs to be clarified and documented, ie. if and/or when a separate local installation of git is required.

spikysimonw avatar Sep 20 '22 13:09 spikysimonw

GitHub Desktop for macOS does in fact come with git. It's located inside the application package at GitHub Desktop.app/Contents/Resources/app/git/bin/git. It doesn't seem to be configured for direct CLI use, however. For instance, issuing a git clone will complain about a missing templates directory:

warning: templates not found in //share/git-core/templates

MagnusOxlund avatar Feb 28 '24 17:02 MagnusOxlund

Yeah, I thought this was very confusing as well.

ktbyers avatar Apr 08 '24 20:04 ktbyers