| | | |
Offset 123, 15 lines modified | Offset 123, 15 lines modified |
123 | git·config·--global·user.email·'jerry@gmail.com' | 123 | git·config·--global·user.email·'jerry@gmail.com' |
124 | git·config·--global·--list | 124 | git·config·--global·--list |
125 | </code></pre> | 125 | </code></pre> |
126 | <p>To·inspect·and·change·local·Git·config,·i.e.·options·specific·to·one·repository,·use·<code>git_config()</code>·and·<code>git_config_set()</code>.</p> | 126 | <p>To·inspect·and·change·local·Git·config,·i.e.·options·specific·to·one·repository,·use·<code>git_config()</code>·and·<code>git_config_set()</code>.</p> |
127 | <h2>Local·repository·basics</h2> | 127 | <h2>Local·repository·basics</h2> |
128 | <p><code>gert::git_init()</code>·is·essentially·<code>git·init</code>;·it’s·how·we·create·a·new·local·repository.·You·provide·the·path·to·the·repository·you·want·to·create.</p> | 128 | <p><code>gert::git_init()</code>·is·essentially·<code>git·init</code>;·it’s·how·we·create·a·new·local·repository.·You·provide·the·path·to·the·repository·you·want·to·create.</p> |
129 | <pre><code·class="language-r">(path·<-·file.path(tempdir(),·"aaa",·"bbb",·"repo_ccc")) | 129 | <pre><code·class="language-r">(path·<-·file.path(tempdir(),·"aaa",·"bbb",·"repo_ccc")) |
130 | #>·[1]·"/tmp/RtmpTgnTtR/aaa/bbb/repo_ccc" | 130 | #>·[1]·"/tmp/RtmpTuTDrQ/aaa/bbb/repo_ccc" |
131 | dir.exists(path) | 131 | dir.exists(path) |
132 | #>·[1]·FALSE | 132 | #>·[1]·FALSE |
| |
133 | (r·<-·git_init(path)) | 133 | (r·<-·git_init(path)) |
134 | #>·Error·in·git_init(path):·could·not·find·function·"git_init" | 134 | #>·Error·in·git_init(path):·could·not·find·function·"git_init" |
135 | dir.exists(path) | 135 | dir.exists(path) |
136 | #>·[1]·FALSE | 136 | #>·[1]·FALSE |