on master help sign in
Merge pull request #1276 from urbit/syncing

syncing desk with working repo

commit1807a3c24e3c1dd746952f52704081828fb6602d authortinnus-napbus <77721746+tinnus-napbus@users.noreply.github.com> dateFri 31 Dec 2021, 21:57 (5 years ago) parent5984617d85b0d3
1 file changed+14
content/docs/development/environment.md+14
content/docs/development/environment.md+14
@@ -311,3 +311,17 @@ And then just commit it in the dojo:
311311
312312If you're [using dev desks](#using-dev-desks) as a base, it's best to keep those
313313files separate from your own code.
314+
315+### Syncing repos
316+
317+A useful pattern is to work from a git repo and sync your work with the pier of
318+a fake ship. An easy way to do this is with the following command:
319+
320+```
321+watch rsync -zr --delete /working/repo/desk/* /path/to/fake/zod/mydesk
322+```
323+
324+Here `/working/repo/desk` is the folder that has the proper desk structure
325+outlined above, and `/path/to/fake/zod/mydesk` is the desk you wish to copy the
326+contents of the working repo to. From here, you can edit from the working repo
327+and perform git commands there, while testing your changes on the fake ship.