Do I need to add each new file in git that is created after init? Or does it happen when I do "git commit -a -v -m ''test''"? If so, can I just use "git ." and it will take new files and skip old ones? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You have to add files to git with: git add . This will add all new files. Command git commit -a -m ''....'' with add only already tracked and changed files and commit them with given message. On Apr 8, 9:02 am, Pål Bergström <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Do I need to add each new file in git that is created after init? > > Or does it happen when I do "git commit -a -v -m ''test''"? > > If so, can I just use "git ." and it will take new files and skip old > ones? > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Bosko Ivanisevic wrote:> You have to add files to git with: > > git add . > > This will add all new files. Command > > git commit -a -m ''....'' > > with add only already tracked and changed files and commit them with > given message. > > On Apr 8, 9:02�am, P�l Bergstr�m <rails-mailing-l...@andreas-s.net>Thanks :-) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Pål Bergström wrote:> Bosko Ivanisevic wrote: >> You have to add files to git with: >> >> git add . >> >> This will add all new files. Command >> >> git commit -a -m ''....'' >> >> with add only already tracked and changed files and commit them with >> given message. >> >> On Apr 8, 9:02�am, P�l Bergstr�m <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > Thanks :-)Also note that git add --all does what git add . does, but this form might only attempt to add modified and untracked files, rather than attempting to add every file in the project. I don''t know if it actually matters though in practice. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Robert Walker wrote:> Pål Bergström wrote:> > Also note that git add --all does what git add . does, but this form > might only attempt to add modified and untracked files, rather than > attempting to add every file in the project. I don''t know if it actually > matters though in practice.I see. Good to know. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---