1CG-INIT(1)                                                          CG-INIT(1)
2
3
4

NAME

6       cg-init - initialize new repository
7

SYNOPSIS

9       cg-init [-I] [-N] [-e EXCLUDEPATTERN]... [-m MESSAGE]...
10
11

DESCRIPTION

13       cg-init(1) called in a non-empty directory will automatically add its
14       contents in the initial commit. (Please note that certain default
15       ignore rules are applied during this operation - see cg-status(1) for
16       detailed description. If any files were not added due to this, cg-init
17       will advise you what to do.)
18
19       This command is intended for creating repositories for work on new
20       projects. If you want to clone an existing project, see cg-clone(1). If
21       you want to set up a public repository not for direct work but only for
22       pushing/pulling, see cg-admin-setuprepo(1). It is also possible to
23       import repositories from other SCMs to GIT, see git-cvsimport(1),
24       git-svnimport(1) and git-archimport(1).
25
26

OPTIONS

28       -e EXCLUDEPATTERN
29              Ignore files matching this pattern when importing files for the
30              initial commit. Note that if you are importing any .gitignore
31              files, they will be considered as well (see cg-status(1) for
32              details on the files ignoring concept). If you want to make an
33              even more custom choice of files to be imported, use the -I
34              parameter and add and perform the initial commit manually.
35
36       -I     Do not perform the initial commit. You can perform the initial
37              commit manually later, but you will need to pass cg-commit the
38              -C parameter.
39
40       -m MESSAGE
41              Specify the commit message for the initial commit. See
42              cg-commit(1) documentation for details.
43
44       -N     Only update the cache: do not copy the data into the object
45              database. This is for special purposes when you might not
46              actually _have_ any object database. This option is normally not
47              interesting.
48
49       -h, --help
50              Print usage summary.
51
52       --long-help
53              Print user manual. The same as found in cg-init(1).
54
56       Copyright © Petr Baudis, 2005
57
58

SEE ALSO

60       cg-init is part of cogito(7), a toolkit for managing git(7) trees.
61
62
63
64
65                                  12/11/2006                        CG-INIT(1)
Impressum