Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| git_init [2019/02/18 10:43] – [Working with the template directory] rpjday | git_init [2019/02/21 12:57] (current) – [Overview (not quite done here)] rpjday | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Overview (add Intro material) ===== | + | ===== Overview (not quite done here) ===== |
| - | Basic operation of creating | + | Basic and advanced features for initializing |
| ===== Working with the template directory ===== | ===== Working with the template directory ===== | ||
| Line 30: | Line 30: | ||
| Rather than accepting the default directory and content, it's common for developers to want to immediately register their own hooks, which means setting up an alternate template directory. | Rather than accepting the default directory and content, it's common for developers to want to immediately register their own hooks, which means setting up an alternate template directory. | ||
| + | |||
| From the man page for "git init'': | From the man page for "git init'': | ||
| < | < | ||
| TEMPLATE DIRECTORY | TEMPLATE DIRECTORY | ||
| - | Files and directories in the template directory whose name do | + | Files and directories in the template directory whose name do |
| - | | + | |
| - | | + | |
| - | The template directory will be one of the following (in order): | + | The template directory will be one of the following (in order): |
| - | · the argument given with the --template option; | + | · the argument given with the --template option; |
| - | · the contents of the $GIT_TEMPLATE_DIR environment variable; | + | · the contents of the $GIT_TEMPLATE_DIR environment variable; |
| - | · the init.templateDir configuration variable; or | + | · the init.templateDir configuration variable; or |
| - | · the default template directory: | + | · the default template directory: |
| - | | + | |
| - | The default template directory includes some directory | + | The default template directory includes some directory |
| - | | + | |
| - | | + | |
| - | The sample hooks are all disabled by default, To enable one of | + | The sample hooks are all disabled by default, To enable one of |
| - | | + | |
| </ | </ | ||