logoalt Hacker News

mr_mitm • today at 12:51 PM • 3 replies • view on HN

Why stop at `git clone`? Why not include `apt install git` and equivalents for all OSs?


Replies

dlkasajiewo • today at 12:56 PM

Whenever I write documentation, my first step is to explain how silicon can be used as a transistor.

➕ show 2 replies
BoppreH • today at 4:26 PM

In my company that comes be default. Also, `git clone` helpfully includes a canonical path to the repository, in case you found the README laying around somewhere.

Otherwise, yes, I would include apt install for the dependencies, which is also incredibly valuable to make explicit. The only tricky part is what package manager to reference.

Telaneo • today at 1:47 PM

If Windows/MacOS doesn't ship git by default, then yes, that should be included. On Linux, the people who are running Linux From Scratch can probably infer what the problem is.

➕ show 1 reply