"git apply" can't add new files to repo ?
- From
- Yang <teddyyyy123@gmail.com>
- Date
- Jul 15, 2011, 19:02 UTC
- Message-ID
- <CAAnh3_-ayozWnHR-ViJ3zjXQvPQA1kd9spGV_TEU=-kFzBytvw@mail.gmail.com>
I created a patch by "git format-patch", and this patch includes some newly-added files.
when I got back to the original branch, and apply this patch, the new files appear, but they are not added to git repository, so I have to manually find all the new files and do "git add" for each of them.
I guess there should have been a way to automatically do "git add" for all the new files in the patch, how could I do that?
thanks a lot Yang