Changes between Version 19 and Version 20 of GitForDarcsUsers


Ignore:
Timestamp:
Aug 14, 2008 1:53:50 PM (7 years ago)
Author:
nominolo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GitForDarcsUsers

    v19 v20  
    4646{{{
    4747ssh me@remote
    48 cd /some/directory
    49 git init
     48cd /some/directory.git
     49git init --bare
    5050exit
    5151cd my/local/repo
    5252git push me@remote:/some/directory
    5353}}}
     54The {{{--bare}}} option disables a checkout of the working copy, i.e., only the contents of the {{{.git}}} directory are stored.
    5455
    5556'''Note''': If the repository is supposed to be shared by several users, it's best to init it with either of these commands:
    5657{{{
    57 git init --shared=group   # everyone in the same group can read and write
    58 git init --shared=all     # same group can read/write, others can read
     58git init --bare --shared=group   # everyone in the same group can read and write
     59git init --bare --shared=all     # same group can read/write, others can read
    5960}}}
    6061You can also set this after the fact, by setting the configuration variable {{{core.sharedRepository}}}.  See {{{git config --help}}} for more information.