{"thread":{"id":"20732","subject":"git only one file","startedAt":"2009-08-25T19:12:35Z","lastAt":"2009-10-02T17:24:38Z","messageCount":3,"participants":["synhedionn","Matthias Kestenholz","gsky"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"121748","messageId":"25140456.post@talk.nabble.com","threadId":"20732","inReplyTo":null,"subject":"git only one file","fromName":"synhedionn","fromEmail":"synhedionn@gmail.com","sentAt":"2009-08-25T19:12:35Z","receivedAt":"2009-08-25T19:12:35Z","isPatch":false,"sender":{"key":"synhedionn@gmail.com","avatar":null},"body":"\nwith git add .  , a directory is expected, but I don't need all my files to\nbe recorded, only one of my thousands, so how can I record just 1 file?\n-- \nView this message in context: http://www.nabble.com/git-only-one-file-tp25140456p25140456.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"121752","messageId":"1f6632e50908251238o2fef1048uc9aa27b38f5d7689@mail.gmail.com","threadId":"20732","inReplyTo":"25140456.post@talk.nabble.com","subject":"Re: git only one file","fromName":"Matthias Kestenholz","fromEmail":"mk@feinheit.ch","sentAt":"2009-08-25T19:38:20Z","receivedAt":"2009-08-25T19:38:20Z","isPatch":false,"sender":{"key":"mk@feinheit.ch","avatar":"https://gravatar.com/avatar/f4f02a5336cf0e3d40b05498959e997f023cb5d8c83ab41545a3272268c67949?d=mp&s=160"},"body":"On Tue, Aug 25, 2009 at 9:12 PM, synhedionn<synhedionn@gmail.com> wrote:\n>\n> with git add .  , a directory is expected, but I don't need all my files to\n> be recorded, only one of my thousands, so how can I record just 1 file?\n\nBy only adding this file to the index. Use \"git add $yourfile\" instead\nof \"git add .\"\n\nIf you do not want to see your thousands of files in the directory\nwhen running git status, you can simply create a .gitignore file with\n* as content. Git will still notify you about files which it already\nknows about, even though the .gitignore entry tells it to ignore\neverything.\n\n\n\nMatthias\n"},{"id":"124139","messageId":"25718014.post@talk.nabble.com","threadId":"20732","inReplyTo":"25140456.post@talk.nabble.com","subject":"Re: git only one file","fromName":"gsky","fromEmail":"gsky51@gmail.com","sentAt":"2009-10-02T17:24:38Z","receivedAt":"2009-10-02T17:24:38Z","isPatch":false,"sender":{"key":"gsky51@gmail.com","avatar":null},"body":"\n\n\nsynhedionn wrote:\n> \n> with git add .  , a directory is expected, but I don't need all my files\n> to be recorded, only one of my thousands, so how can I record just 1 file?\n> \n\ngit add /path/to/file\n-- \nView this message in context: http://www.nabble.com/git-only-one-file-tp25140456p25718014.html\nSent from the git mailing list archive at Nabble.com.\n"}]}