An implementation-agnostic git server.
- Run
cargo run --example simple
. - Create a new git repository:
mkdir example && \ cd example && \ git init .
- Create an empty file and commit it.
touch README.md && \ git add . && \ git commit -m "Initial commit."
- Add the
simple
's git receiver as a remote:git remote add origin http://localhost:3030/
- Push!
git push -u origin main
Expected output:
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Writing objects: 100% (3/3), 860 bytes | 860.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
+ remote: This is an example message!
To http://localhost:3030/
* [new branch] main -> main
Branch 'main' set up to track remote branch 'main' from 'origin'.
(Note that you can send custom progress messages, like Github does for PRs.)