Skip to content

deadex-ng/git-in-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

README

This project is an educational re-implementation of core Git functionality using Python, built purely for learning how Git works under the hood. It mimics the essential commands like init, add, status, and commit, giving you a hands-on understanding of concepts such as staging, hashing, object storage, and repository structure.

Disclaimer: This is still a work in progress, expect rough edges, bugs, and missing features. Read (and run) at your own risk!

Initalize a git repo

$ python3 main.py init test_repo

Initialized empty Git repository in test_repo

Change directory

$ cd test_repo

Create a new file

$ echo "Hell, World!" > greet.txt

Check status

$ python3 ~/Documents/git-in-python/main.py status
On branch master


Untracked files:
    greet.txt

Add file

$ python3 ~/Documents/git-in-python/main.py add greet.txt

Commit file

$ python3 ~/Documents/git-in-python/main.py commit -m "Add greet.txt"
committed to master: 520b083f565d2335330eefe0cbd1f401abac600c

About

Implementing git in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages