Re: git only one file
- From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
- Date
- Aug 26, 2009, 04:30 UTC
- Message-ID
- <cb7bb73a0908252130u792a328bta1e186ff8f5454b8@mail.gmail.com>
- In-Reply-To
- <a7c6f4d60908251605l5fb771a5t79b27cf688fab205@mail.gmail.com>
On Wed, Aug 26, 2009 at 1:05 AM, syn hedionn<synhedionn@gmail.com> wrote:
> ok , but if I put, > git add index.htm > I have: > fatal: Not a git repository
You need to initialize the repository before you can add files to it, so:
git init git add index.htm git commit -m "Initial commit"
The zit way would be:
zit track index.htm zit commit -m "Initial commit" index.htm
-- Giuseppe "Oblomov" Bilotta