| | 39 | |
| | 40 | == darcs put == |
| | 41 | |
| | 42 | There's no default command to do that, but the following should work: |
| | 43 | {{{ |
| | 44 | ssh me@remote |
| | 45 | cd /some/directory |
| | 46 | git init |
| | 47 | exit |
| | 48 | cd my/local/repo |
| | 49 | git push me@remote:/some/directory |
| | 50 | }}} |
| | 51 | |
| | 52 | '''Note''': If the repository is supposed to be shared by several users, it's best to init it with either of these commands: |
| | 53 | {{{ |
| | 54 | git init --shared=group # everyone in the same group can read and write |
| | 55 | git init --shared=all # same group can read/write, others can read |
| | 56 | }}} |
| | 57 | You can also set this after the fact, by setting the configuration variable {{{core.sharedRepository}}}. See {{{git config --help}}} for more information. |