Thread (1 message) 1 message, 1 author, 2016-06-15
  • (off-list ancestor, not in this archive)
  • Re: git only one file · Giuseppe Bilotta <hidden> · 2016-06-15

Re: git only one file

From: Giuseppe Bilotta <hidden>
Date: 2016-06-15 22:47:19

On Wed, Aug 26, 2009 at 1:05 AM, syn hedionn[off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help