Skip to content

MarceloCoelho1/tig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TIG - Tiny Git Clone

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.

Implemented Commands

init

Initializes a new TIG repository.

node src/index.js init

cat-file

Displays the content of an object stored in the repository.

node src/index.js cat-file <hash>

clone

Clones a remote Git repository.

node src/index.js clone <repo-url>

commit

Creates a commit with the files in the index.

node src/index.js commit -m "Commit message"

hash-object

Hashes an object (file) and stores it in the repository.

node src/index.js hashObject <file>

write-tree

Writes the directory tree from the index to the repository.

node src/index.js writeTree

ls-tree

Displays the directory tree from the index in the console.

node src/index.js ls-tree <hash>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published