Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

explain how to find the hash #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@ touch somerepo/.git/git-daemon-export-ok
gittorrentd
```

If all goes well, you should see something like:

```
in repo somerepo/.git/git-daemon-export-ok
somerepo/.git/
Announcing a5491738f6415acb996f98800b33421ea472d2d6 for ref
refs/heads/master on repo somerepo/.git/
{"repositories":{"test":{"master":"a5491738f6415acb996f98800b33421ea472d2d6"}}}
```

You then can use that hash in URLs to clone that repo elsewhere:

```
git clone gittorrent://a5491738f6415acb996f98800b33421ea472d2d6/somerepo

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This hash is the hash of master

```

# Design

The design of GitTorrent has five components:
Expand Down