Developer Tools52k+ stars

Git

The world's most popular version control system

Commit Details

Message
"Initial revision of "git", the information manager from hell"
Author
Linus Torvalds
Date
2005-04-07
Hash
e83c5163316f89bfbde7d9ab23ca2e25604af290

Fun Fact

Linus wrote the first version of Git in just 10 days after a falling out with BitKeeper, the previous VCS for Linux.

</>First Code

C
/*
 * GIT - The information manager from hell
 *
 * Copyright (C) Linus Torvalds, 2005
 */
#include "cache.h"

int main(int argc, char **argv)
{
	int i, newfd;
	struct cache_header hdr;
	
	entries = 0;
	
	for (i = 1 ; i < argc; i++) {
		char *path = argv[i];
		struct stat st;
		// ... add files to index
	}
	
	return 0;
}