mirror of https://github.com/voidlizard/hbs2
README
This commit is contained in:
parent
51e43c4f50
commit
9c7241d236
55
README.md
55
README.md
|
@ -6,6 +6,7 @@
|
|||
- [How to generate peer\'s key?](#how-to-generate-peers-key)
|
||||
- [How to run hbs2-peer](#how-to-run-hbs2-peer)
|
||||
- [How to configure hbs2-peer](#how-to-configure-hbs2-peer)
|
||||
- [How to a new own repo](#how-to-a-new-own-repo)
|
||||
- [How to make a pull request](#how-to-make-a-pull-request)
|
||||
- [How to launch a peer](#how-to-launch-a-peer)
|
||||
- [How to save an encrypted file
|
||||
|
@ -25,6 +26,7 @@
|
|||
- [Donate](#donate)
|
||||
- [Other](#other)
|
||||
|
||||
|
||||
# ABOUT
|
||||
|
||||
## What is it
|
||||
|
@ -212,6 +214,59 @@ poll reflog 1 "2YNGdnDBnciF1Kgmx1EZTjKUp1h5pvYAjrHoApbArpeX"
|
|||
|
||||
```
|
||||
|
||||
## How to a new own repo
|
||||
|
||||
1. Create a new keyring
|
||||
|
||||
```
|
||||
hbs2 keyring-new > new.key
|
||||
```
|
||||
|
||||
2. Watch it's public key
|
||||
|
||||
```
|
||||
hbs2 keyring-list new.key
|
||||
```
|
||||
Example:
|
||||
|
||||
```
|
||||
[user@host:~/dir]$ hbs2 keyring-list ./new.key
|
||||
sign-key: eq5ZFnB9HQTMTeYasYC3pSZLedcP7Zp2eDkJNdehVVk
|
||||
```
|
||||
|
||||
|
||||
3. Export repo to the new reflog
|
||||
|
||||
```
|
||||
git hbs2 export eq5ZFnB9HQTMTeYasYC3pSZLedcP7Zp2eDkJNdehVVk -k ./new.key
|
||||
```
|
||||
|
||||
4. Add key to a repo's config
|
||||
|
||||
And a branch to track
|
||||
|
||||
|
||||
```
|
||||
cat ~/.config/hbs2-git/dir/config
|
||||
|
||||
branch "master"
|
||||
|
||||
keeyring "/path/to/new.key"
|
||||
|
||||
```
|
||||
|
||||
5. Add git remote and push
|
||||
|
||||
```
|
||||
git add mynerepo hbs2://eq5ZFnB9HQTMTeYasYC3pSZLedcP7Zp2eDkJNdehVVk
|
||||
git push mynerepo
|
||||
```
|
||||
|
||||
6. Wait some time
|
||||
|
||||
7. Work with git as usual
|
||||
|
||||
|
||||
|
||||
## How to make a pull request
|
||||
|
||||
|
|
Loading…
Reference in New Issue