rad-remote.md
1 Now, let's add a bob as a new remote: 2 3 ``` 4 $ rad remote add did:key:z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk --name bob 5 ✓ Remote bob added 6 ✓ Remote-tracking branch bob/master created for z6Mkt67…v4N1tRk 7 ``` 8 9 Now, we can see that there is a new remote in the list of remotes: 10 11 ``` 12 $ rad remote list 13 bob z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk (fetch) 14 rad (canonical upstream) (fetch) 15 rad z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi (push) 16 ``` 17 18 You can see both `bob` and `rad` as remotes. The `rad` remote is our personal 19 remote of the project. 20 21 For the remote-tracking branch to work, we fetch bob: 22 23 ``` RAD_SOCKET=/dev/null (stderr) 24 $ git fetch bob 25 From rad://z42hL2jL4XNk6K8oHQaSWfMgCL7ji/z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk 26 * [new branch] master -> bob/master 27 ``` 28 29 We can now see the remote-tracking branch that was setup: 30 31 ``` 32 $ git branch -r -v 33 bob/master f2de534 Second commit 34 rad/master f2de534 Second commit 35 ``` 36 37 When we're finished with the `bob` remote, we can remove it: 38 39 ``` 40 $ rad remote rm bob 41 ✓ Remote `bob` removed 42 $ git branch -r -v 43 rad/master f2de534 Second commit 44 ``` 45 46 Now, add another time `bob` but without specify the `name`, so we should be 47 able to fetch the node alias from our db! 48 49 ``` 50 $ rad remote add did:key:z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk 51 ✓ Remote bob@z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk added 52 ✓ Remote-tracking branch bob@z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk/master created for z6Mkt67…v4N1tRk 53 ```