TIG (Tiny Git Clone) is a simplified implementation of some Git functionalities, focused on understanding internal concepts and learning about file manipulation, compression, and network communication.
Initializes a new TIG repository.
node src/index.js init
Displays the content of an object stored in the repository.
node src/index.js cat-file <hash>
Clones a remote Git repository.
node src/index.js clone <repo-url>
Creates a commit with the files in the index.
node src/index.js commit -m "Commit message"
Hashes an object (file) and stores it in the repository.
node src/index.js hashObject <file>
Writes the directory tree from the index to the repository.
node src/index.js writeTree
Displays the directory tree from the index in the console.
node src/index.js ls-tree <hash>