This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: Suggest correct command for pushing
In cases where there is an existing remote, the user has to specify the branch name when pushing, so we update the help string to suggest that.
- Loading branch information
Showing
3 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
Let's try to `rad init` a repo which already has a remote tracking branch for `master`. | ||
|
||
First we have to create a valid remote repository. | ||
|
||
``` | ||
$ git init --bare remote | ||
Initialized empty Git repository in [..] | ||
``` | ||
|
||
Then we add it as a remote. | ||
|
||
``` | ||
$ git remote add origin file://$PWD/remote | ||
$ git push -u origin master:master | ||
branch 'master' set up to track 'origin/master'. | ||
$ git branch -vv | ||
* master f2de534 [origin/master] Second commit | ||
``` | ||
|
||
Then we initialize. | ||
|
||
``` | ||
$ rad init --name heartwood --description "Heartwood Protocol & Stack" --no-confirm --public | ||
Initializing public radicle 👾 project in . | ||
✓ Project heartwood created. | ||
Your project's Repository ID (RID) is rad:z2D6wQnKapY7dn5meBnbH2rUKNZbT. | ||
You can show it any time by running `rad .` from this directory. | ||
Your project will be announced to the network when you start your node. | ||
You can start your node with `rad node start`. | ||
To push changes, run `git push rad master`. | ||
``` | ||
|
||
Finally we run the suggested command. | ||
|
||
``` (stderr) | ||
$ git push rad master | ||
Everything up-to-date | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters