man cg-init (Commandes) - initialize a git repository
NAME
cg-init - initialize a git repository
SYNOPSIS
cg-init [-I] [-N] [-e EXCLUDEPATTERN]... [-m MESSAGE]...
DESCRIPTION
If cg-init(1) is run in a non-empty directory files in the top and sub directory will automatically be added.
This command is intended for creating repositories for work on new projects. If you want to clone an existing project, see cg-clone(1). If you want to set up a public repository not for direct work but only for pushing/pulling, see cg-admin-setuprepo(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. If you want to make en 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 cg-commit(1) 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 help.
COPYRIGHT
Copyright © Petr Baudis, 2005