{{Install Package
|package=git auditd
}}
Change directory to folder {{{folder}}}
.
{{CodeSelect|code=
cd {{{folder}}}
}}
Initialize git in that folder.
{{CodeSelect|code=
{{{sudo_maybe}}} git init
}}
Git needs an e-mail address. That e-mail address doesn't need to actually exist. That e-mail address would appear in git commit change logs if that git repository was ever pushed to any remote. If only used locally, the default you@example.com
could be kept. Otherwise, the user may change you@example.com
to any e-mail address of their choice.
{{CodeSelect|code=
{{{sudo_maybe}}} git config user.email "you@example.com"
}}
Git needs an name. That name address doesn't need to actually exist. That name would appear in git commit change logs if that git repository was ever pushed to any remote. If only used locally, the default Your Name
could be kept. Otherwise, the user may change Your Name
to any name of their choice.
{{CodeSelect|code=
{{{sudo_maybe}}} git config user.name "Your Name"
}}
Add all files in that folder to git.
{{CodeSelect|code=
{{{sudo_maybe}}} git add -A
}}
Commit all files to git. [
Commits all files to git with commit message ].
for simplicity. Commit message could also be something else such as {{{sudo_maybe}}} git commit -a -m "initial commit"
.
{{CodeSelect|code=
{{{sudo_maybe}}} git commit -a -m .
}}
[[Category:MultiWiki]]