Rechercher une page de manuel
cg-init
Langue: en
Version: 02/24/2009 (fedora - 04/07/09)
Section: 1 (Commandes utilisateur)
NAME
cg-init - initialize new repositorySYNOPSIS
cg-init [-I] [-N] [-e EXCLUDEPATTERN]... [-m MESSAGE]...
DESCRIPTION
gitm[blue]1m[][1] called in a non-empty directory will automatically add its contents in the initial commit. (Please note that certain default ignore rules are applied during this operation - see gitm[blue]1m[][2] for detailed description. If any files were not added due to this, cg-init will advise you what to do.)
This command is intended for creating repositories for work on new projects. If you want to clone an existing project, see gitm[blue]1m[][3]. If you want to set up a public repository not for direct work but only for pushing/pulling, see gitm[blue]1m[][4]. It is also possible to import repositories from other SCMs to GIT, see git-cvsimport(1), git-svnimport(1) and git-archimport(1).
OPTIONS
-e EXCLUDEPATTERN
- Ignore files matching this pattern when importing files for the initial commit. Note that if you are importing any .gitignore files, they will be considered as well (see gitm[blue]1m[][2] for details on the files ignoring concept). If you want to make an even more custom choice of files to be imported, use the -I parameter and add and perform the initial commit manually.
-I
- Do not perform the initial commit. You can perform the initial commit manually later, but you will need to pass cg-commit the -C parameter.
-m MESSAGE
- Specify the commit message for the initial commit. See gitm[blue]1m[][5] documentation for details.
-N
- Only update the cache: do not copy the data into the object database. This is for special purposes when you might not actually have any object database. This option is normally not interesting.
-h, --help
- Print usage summary.
--long-help
- Print user manual. The same as found in gitm[blue]1m[][1].
COPYRIGHT
Copyright © Petr Baudis, 2005
SEE ALSO
cg-init is part of gitm[blue]7m[][6], a toolkit for managing gitm[blue]7m[][7] trees.
NOTES
- 1.
- 1
- [set $man.base.url.for.relative.links]/cg-init
- 2.
- 1
- [set $man.base.url.for.relative.links]/cg-status
- 3.
- 1
- [set $man.base.url.for.relative.links]/cg-clone
- 4.
- 1
- [set $man.base.url.for.relative.links]/cg-admin-setuprepo
- 5.
- 1
- [set $man.base.url.for.relative.links]/cg-commit
- 6.
- 7
- [set $man.base.url.for.relative.links]/cogito
- 7.
- 7
- [set $man.base.url.for.relative.links]/git
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre