GoGit is a simplified implementation of Git, the distributed version control system, built from scratch in Go. This project is intended for educational purposes, providing a hands-on approach to understanding the core concepts and inner workings of Git.
- Initialize a new repository: Create a new
.gogitdirectory to start tracking a project. - Add files to the staging area: Track new or modified files to be included in the next commit.
- Commit changes: Save snapshots of the staging area to the project's history.
- View commit history: Inspect the log of commits to see the project's evolution.
- Go 1.18 or higher
- Clone the repository:
git clone https://github.com/TonyGLL/go-git.git
- Navigate to the project directory:
cd go-git - Build the project:
go build .
GoGit provides the following commands:
gogit init: Initializes a new repository.gogit add <file>: Adds a file to the staging area.gogit commit -m <message>: Commits the staged changes.gogit log: Displays the commit history.
Contributions are welcome! If you'd like to improve GoGit, please feel free to fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.