Skip to content

Commit

Permalink
Merge pull request #2144 from dolthub/taylor/hosted-push
Browse files Browse the repository at this point in the history
Fix hosted remotesapi docs
  • Loading branch information
tbantle22 authored Apr 24, 2024
2 parents 2804829 + 5fbed33 commit 43e28a0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions packages/dolt/content/products/hosted/cloning.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ After running the `dolt clone` command, you should have a local copy of your Hos
database.

```shell
% dolt clone https://dolthub-us-housing.dbs.hosted.doltdb.com/us-housing-prices -u"username"
% dolt clone https://dolthub-us-housing.dbs.hosted.doltdb.com/us-housing-prices --user "username"
cloning https://dolthub-us-housing.dbs.hosted.doltdb.com/us-housing-prices
% cd us-housing-prices
% dolt sql -q "select count(*) from sales"
Expand All @@ -93,6 +93,11 @@ commands to your remotesapi endpoint in the same way by passing the `--user` fla
% dolt fetch --user "[username]"
```

Note that this remotesapi endpoint is currently read-only. Writes to remotesapi, such as
[`dolt push`](https://docs.dolthub.com/cli-reference/cli#dolt-push), are not supported
yet.
## 4. Sync your upstream with changes from local copy

If you make any changes on your local copy, you can push them to your upstream using
[`dolt push`](https://docs.dolthub.com/cli-reference/cli#dolt-push).

```shell
% dolt push origin --user "[username]" HEAD:main
```

0 comments on commit 43e28a0

Please sign in to comment.