diff --git a/Readme.md b/Readme.md index 3fcc6a6..d66a4b0 100644 --- a/Readme.md +++ b/Readme.md @@ -31,17 +31,17 @@ NOTE: application home directory will be created in `~/.gitpear` - this may requ All data will be persisted in application directory (default `~/.gitpear`). To change it. Provide environment variable `GIT_PEAR` -* `gitpear daemon <-s, --start | -k, --stop>` - start or stop daemon +* `git pear daemon <-s, --start | -k, --stop>` - start or stop daemon -* `gitpear key` - print out public key. Share it with your peers so that they can do `git pull pear:/` +* `git pear key` - print out public key. Share it with your peers so that they can do `git pull pear:/` -* `gitpear init [-s, --share] ` - It will create [bare repository](https://git-scm.com/docs/git-init#Documentation/git-init.txt---bare) of the same name in application directory (default ~/.gitpear/). It will add [git remote](https://git-scm.com/docs/git-remote) in current repository with name `pear`. So just like in traditional flow doing `git push orign`, here we do `git push pear`. By default repository will not be shared. To enable sharing provide `-s` or call `gitpear share ` later +* `git pear init [-s, --share] ` - It will create [bare repository](https://git-scm.com/docs/git-init#Documentation/git-init.txt---bare) of the same name in application directory (default ~/.gitpear/). It will add [git remote](https://git-scm.com/docs/git-remote) in current repository with name `pear`. So just like in traditional flow doing `git push orign`, here we do `git push pear`. By default repository will not be shared. To enable sharing provide `-s` or call `gitpear share ` later -* `gitpear share ` - makes repository sharable +* `git pear share ` - makes repository sharable -* `gitpear unshare ` - stop sharing repository +* `git pear unshare ` - stop sharing repository -* `gitpear list [-s, --shared]` - list all or (only shared) repositories +* `git pear list [-s, --shared]` - list all or (only shared) repositories ## Usage example @@ -53,8 +53,8 @@ Collaboration is possible however with the following flow between Alice and Bob 2. Alice steps are: ``` cd Repo -gitpear init -s -gitpear list +git pear init -s +git pear list # outputs: # Repo pear:///Repo ``` @@ -63,12 +63,12 @@ gitpear list ``` git clone pear:///Repo cd Repo -gitpear init -s +git pear init -s git checkout -b feature # implement feature git commit -m 'done' git push pear feature -gitpear list +git pear list # outputs: # Repo pear:///Repo ``` diff --git a/package.json b/package.json index 9d9e60a..4e326d0 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,9 @@ "pretest": "tar xzf test_home.tar.gz -C . " }, "bin": { - "gitpeard": "./src/gitpeard.js", + "git-peard": "./src/gitpeard.js", "git-remote-pear": "./src/git-remote-pear.js", - "gitpear": "./src/cli.js" + "git-pear": "./src/cli.js" }, "repository": { "type": "git",