Live data from Hacker News

Version control without Git

itoshkov.github.io

1–10 of 68 posts

Re: Version control without Git

#2
> In this tutorial I’ll try to describe how git works, without using git. Instead, we’ll create a simple, git-like system using just zip files, diff, and patch.

Pretty neat! Could probably make some simple shell scripts from the examples shown, not-git-status, not-git-commit, etc

Re: Version control without Git

#6
Title is horribly incorrect.

Simulating git would be more appropriate.

I expected this to be a look at other version control systems around today. It's yet another 'let's recreate git from scratch, kinda' post.

Re: Version control without Git

#7

You can simulate git via: mkdir v2 ; cp -rp v1 v2

I think a closer example at the filesystem level would be

  rsnapshot alpha
rsnapshot [1] uses hard links when it can to create a delta of changed files. Reverting can be done with rsync or cherry picking files. git blame would have to be done via something like auditd and syslog and nowhere near as easy as using git. I use rsnapshot to back up my git repos in the event they get corrupted.

[1] - https://linux.die.net/man/1/rsnapshot

Post reply on HN