linux VS Git

Compare linux vs Git and see what are their differences.

linux

Linux kernel source tree (by torvalds)

Git

Git Source Code Mirror - This is a publish-only repository but pull requests can be turned into patches to the mailing list via GitGitGadget (https://gitgitgadget.github.io/). Please follow Documentation/SubmittingPatches procedure for any of your improvements. (by git)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
linux Git
980 285
170,074 49,844
- 1.7%
10.0 10.0
1 day ago 6 days ago
C C
GNU General Public License v3.0 or later GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

linux

Posts with mentions or reviews of linux. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-17.
  • Linus Torvalds adds arbitrary tabs to kernel code
    3 projects | news.ycombinator.com | 17 Apr 2024
    These are a bit easier to see what's going on:

    https://github.com/torvalds/linux/commit/d5cf50dafc9dd5faa1e...

    https://github.com/torvalds/linux/blob/d5cf50dafc9dd5faa1e61...

    Unfortunately Github doesn't have a way to render symbols for whitespace, but you can tell by selecting the spaces that the previous version had leading tabs. Linus changed it so that the tokens `default` and the number e.g. `12` are also separated by a tab. This is tricky, because the token "default" is seven characters, it will always give this added tab a width of 1 char which makes it always layout the same as if it were a space no matter if you use tab widths of 1, 2, 4, or 8.

  • Show HN: Running TempleOS in user space without virtualization
    3 projects | news.ycombinator.com | 11 Apr 2024
  • PfSense Software Embraces Change: A Strategic Migration to the Linux Kernel
    1 project | news.ycombinator.com | 4 Apr 2024
    There was also a Gentoo effort to run atop FreeBSD[0]. The challenge of course is that afaik none of the BSD kernel ABIs are considered stable. The stable interface is the BSD libc. That said, with binfmt_misc, I don't see a reason you couldn't just run (at least some) FreeBSD binaries on Linux with a thin syscall translation layer (rather something like qemu-system) and then your layer hooked via binfmt_misc. I'm not aware of anyone who has done this for FreeBSD, but prior efforts existed as alternate binfmts for SysVr4/5 ELF binaries[2]. Either way would take some elbow grease, but you *might* even be able just reuse binfmt_elf and just have a new interpreter for FreeBSD elf.

    [0] https://wiki.gentoo.org/wiki/Gentoo_FreeBSD

    [1] https://docs.kernel.org/admin-guide/binfmt-misc.html

    [2] https://github.com/torvalds/linux/blob/master/fs/binfmt_elf....

  • Improvements to static analysis in GCC 14
    1 project | news.ycombinator.com | 3 Apr 2024
    > The original less-than check was deemed incorrect

    It was only deemed incorrect because of an information leak. Not because it's a valid use-case for user space to copy smaller portions of *hwrpb into user space. https://github.com/torvalds/linux/commit/21c5977a836e399fc71...

  • Linus Torvalds accepts a merge commit to the Linux kernel
    2 projects | news.ycombinator.com | 1 Apr 2024
  • TinyMCE (also) moving from MIT to GPL
    3 projects | news.ycombinator.com | 27 Mar 2024
    Correct. And the combined work needs to carry the MIT license text and copyright attributions for the MIT software authors. With binary distribution it must also be overt, not hidden in some source code drop, but directly accompanying the binary.

    Many people who talk about relicensing never credit the MIT developers or distribute the MIT license text. "Because it's GPL now."

    I don't think that you believe that, but many developers do.

    Some don't see the need for source code scans for Open Source compliance, because the license.txt says GPL, so it's GPL. Prime example is the Linux kernel. There is code under different licenses in there, but people don't even read https://github.com/torvalds/linux/blob/master/COPYING till the end ("In addition, other licenses may also apply.") and conclude it's simply GPL 2 and nothing else.

    Also be aware that sublicensing is not the same as relicensing.

  • Linus Torvalds is looking for a more modern GUI editor
    1 project | news.ycombinator.com | 28 Feb 2024
    > Does he have something against it?

    He notoriously hates GNU Emacs, yes.

    https://marc.info/?m=122955159617722

    https://github.com/torvalds/linux/blob/master/Documentation/...

  • The Linux Kernel Prepares for Rust 1.77 Upgrade
    9 projects | news.ycombinator.com | 18 Feb 2024
    So If we would only count code and not comments, it is only 9489 LoC Rust. Which would be about 0.03% and if we take all lines and not only LoC it would be around 0.05%

    [0] https://github.com/XAMPPRocky/tokei

    [1] https://github.com/torvalds/linux/commit/b401b621758e46812da...

  • Proposed Windows NT sync driver brings big Wine/Proton performance improvements
    2 projects | news.ycombinator.com | 25 Jan 2024
    AIUI fsync is built on futex_waitv which has been upstreamed. So this has to be more than that.

    https://github.com/torvalds/linux/commit/a0eb2da92b715d0c97b...

  • Tell HN: GitHub no longer readable without JavaScript
    2 projects | news.ycombinator.com | 24 Jan 2024
    git clone --no-checkout --depth 1 https://github.com/torvalds/linux.git $dir

Git

Posts with mentions or reviews of Git. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-13.
  • GitHub Git Mirror Down
    1 project | news.ycombinator.com | 11 Apr 2024
  • Four ways to solve the "Remote Origin Already Exists" error.
    1 project | dev.to | 28 Mar 2024
  • So You Think You Know Git – Git Tips and Tricks by Scott Chacon
    6 projects | news.ycombinator.com | 13 Feb 2024
    Boy, I can't find this either (but also, the kernel mailing list is _really_ difficult to search). I really remember Linus saying something like "it's not a real SCM, but maybe someone could build one on top of it someday" or something like that, but I cannot figure out how to find that.

    You _can_ see, though, that in his first README, he refers to what he's building as not a "real SCM":

    https://github.com/git/git/commit/e83c5163316f89bfbde7d9ab23...

  • Maintain-Git.txt
    1 project | news.ycombinator.com | 6 Feb 2024
  • Git Commit Messages by Jeff King
    2 projects | news.ycombinator.com | 1 Feb 2024
    Here is the direct link, as HN somehow removes the query string: https://github.com/git/git/commits?author=peff&since=2023-10...
  • Git commit messages by Jeff King
    1 project | news.ycombinator.com | 1 Feb 2024
  • My favourite Git commit (2019)
    8 projects | news.ycombinator.com | 1 Feb 2024
  • Do we think of Git commits as diffs, snapshots, and/or histories?
    1 project | news.ycombinator.com | 6 Jan 2024
    I understand all that.

    I'm saying, if you write a survey and one of the possible answers is "diff", but you don't clearly define what you mean by "diff", then don't be surprised if respondents use any reasonable definition that makes sense to them. Ask an ambiguous question, get a mishmash of answers.

    The thing that Git uses for packfiles is called a "delta" by Git, but it's also reasonable to call it a "diff". After all, Git's delta algorithm is "greatly inspired by parts of LibXDiff from Davide Libenzi"[1]. Not LibXDelta but LibXDiff.

    Yes, how Git stores blobs (using deltas) is orthogonal to how Git uses blobs. But while that orthogonality is useful for reasoning about Git, it's not wrong to think of a commit as the totality of what Git does, including that optimization. (Some people, when learning Git, stumble over the way it's described as storing full copies, think it's wasteful. For them to wrap their heads around Git, they have to understand that the optimization exists. Which makes sense because Git probably wouldn't be practical if it lacked that optimization.)

    The reason I'm bringing all this up is, if you're trying to explain Git, which is what the original article is about, then it's very important to keep in mind that someone who is learning Git needs to know what you mean when you say "diff". Most people who already know Git would tend to gravitate toward the definition of "diff" that you're assuming (the thing that Git computes on the fly and never stores), but people who already know Git aren't the target audience when you're teaching Git.

    ---

    [1] https://github.com/git/git/blob/master/diff-delta.c

  • The State of Merging Technology
    1 project | news.ycombinator.com | 13 Dec 2023
    Didn't Git have a new default merge strategy, `ort` https://github.com/git/git/blob/master/Documentation/RelNote... ?
  • The bash book to rule them all
    5 projects | news.ycombinator.com | 25 Nov 2023
    Yes, but you are referring to standalone scripts, not functions defined within a Bash script.

    Compare for example the following helper code used for git command completion inside Bash and inside PowerShell.

    Bash: https://github.com/git/git/blob/master/contrib/completion/gi...

What are some alternatives?

When comparing linux and Git you can also consider the following projects:

zen-kernel - Zen Patched Kernel Sources

scalar - Scalar: A set of tools and extensions for Git to allow very large monorepos to run on Git without a virtualization layer

DS4Windows - Like those other ds4tools, but sexier

PineappleCAS - A generic computer algebra system targeted for the TI-84+ CE calculators

winapps - Run Windows apps such as Microsoft Office/Adobe in Linux (Ubuntu/Fedora) and GNOME/KDE as if they were a part of the native OS, including Nautilus integration.

Subversion - Mirror of Apache Subversion

Open and cheap DIY IP-KVM based on Raspberry Pi - Open and inexpensive DIY IP-KVM based on Raspberry Pi

vscode-gitlens - Supercharge Git inside VS Code and unlock untapped knowledge within each repository — Visualize code authorship at a glance via Git blame annotations and CodeLens, seamlessly navigate and explore Git repositories, gain valuable insights via rich visualizations and powerful comparison commands, and so much more

serenity - The Serenity Operating System 🐞

chromebrew - Package manager for Chrome OS [Moved to: https://github.com/chromebrew/chromebrew]

DsHidMini - Virtual HID Mini-user-mode-driver for Sony DualShock 3 Controllers

jj - A Git-compatible VCS that is both simple and powerful