https://github.com/lucamienert/dotnetgit
Git Clone in .NET C#
https://github.com/lucamienert/dotnetgit
dotnet git git-clone
Last synced: 4 months ago
JSON representation
Git Clone in .NET C#
- Host: GitHub
- URL: https://github.com/lucamienert/dotnetgit
- Owner: lucamienert
- Created: 2025-09-06T15:20:48.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2025-09-06T16:10:46.000Z (5 months ago)
- Last Synced: 2025-09-14T01:42:29.672Z (5 months ago)
- Topics: dotnet, git, git-clone
- Language: C#
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# .NET GIT
A simple Git-clone version control system written in C# for learning purposes.
It has basic Git functionality listed below.
It initializes a repository in `.dotnetgit`.
## Supported commands
- init
- add
- commit
- branch
- log
- status
- checkout
- merge
## Examples
### Initialize a repository
```bash
dotnet run -- init
```
### Add files
Note: Folders and Files are supported
```bash
dotnet run -- src/ README.md
```
### Commit changes
```bash
dotnet run -- commit "Initial commit"
```
### Status
```bash
dotnet run -- status
```
### View commit history
```bash
dotnet run -- log
```
### Branching
```bash
dotnet run -- branch test
dotnet run -- checkout test
```
### Merge
```bash
dotnet run -- checkout master
dotnet run -- merge test
```
## Sources
https://github.com/codecrafters-io/build-your-own-x
https://wyag.thb.lt/
https://kushagra.dev/blog/build-git-learn-git/
https://www.leshenko.net/p/ugit/#