Re: [PATCH 7/7] Documentation: git-init: flesh out example
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 5, 2014, 22:14 UTC
- Message-ID
- <xmqqegwuoa7b.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <1407002817-29221-8-git-send-email-linusarver@gmail.com>
Linus Arver <linusarver@gmail.com> writes:
Show 14 quoted lines
> Signed-off-by: Linus Arver <linusarver@gmail.com> > --- > Documentation/git-init.txt | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/Documentation/git-init.txt b/Documentation/git-init.txt > index b94d165..16e9f9c 100644 > --- a/Documentation/git-init.txt > +++ b/Documentation/git-init.txt > @@ -138,10 +138,12 @@ Start a new Git repository for an existing code base:: > $ cd /path/to/my/codebase > $ git init <1> > $ git add . <2> > +$ git commit <3>
I agree it is a good discipline to make the initial "pristine" import immediately after "git add ." without doing anything else. Perhaps the description below wants to make it more explicit?
Show 10 quoted lines
> ---------------- > + > -<1> prepare /path/to/my/codebase/.git directory > -<2> add all existing file to the index > +<1> Create a /path/to/my/codebase/.git directory. > +<2> Add all existing files to the index. > +<3> Create the first root-commit. > > GIT > ---