375
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 03 Jan 2025
375 points (98.0% liked)
Linux
48900 readers
980 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
degit
is a tool that will check out a git repo (or a specific branch or commit), but not set it up as a git repo. Basically just downloading a specific commit to a directory.So just clone a git and delete the .git folder? Seems pretty useless to me.
If you want to waste bandwidth downloading the entire commit history, go ahead.
~~
--depth=1
? I use this all the time when I clone the kernel.~~Edit: reread that you wanted to download code at a particular commit.
--single-branch
Can single-branch handle cloning from a particular commit? I know that it's possible to clone particular branches and particular tags with depth=1, but OP states cloning at a particular commit, not HEAD.