Run "generator destroy", now git is telling me I have missing files. How do I best deal with this?
18 views
Skip to first unread message
Bizt
unread,
Jan 31, 2014, 9:56:51 AM1/31/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
Hi,
In rails I run "rails generator destroy..." for my controllers and models. When I "git add . " files and commit changes, git tells me I have missing files. How best to handle this? I want the files off git as I don't need them anymore, they're not in my local repository. Do I then need to manually "git rm ..." for each one. Is there is quick way to just remove these files from git? Usually destroy command deletes many files.
Cheers Bizt
Colin Law
unread,
Jan 31, 2014, 10:35:19 AM1/31/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
Use git gui (unless you don't have a graphic UI). Then it is easy.
Colin
Melvin Ram
unread,
Jan 31, 2014, 11:31:38 AM1/31/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
Use 'git add -u' or add the specific files you've removed ex. 'git add app/removed_file.rb'
Bizt
unread,
Jan 31, 2014, 7:06:30 PM1/31/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
Thanks for your reply. Can you tell me what "git add -u" does, I can't find documentation for that specific option. Thanks
Colin Law
unread,
Feb 1, 2014, 4:31:21 AM2/1/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
On 1 February 2014 00:06, Bizt <marty...@gmail.com> wrote:
> Thanks for your reply. Can you tell me what "git add -u" does, I can't find
> documentation for that specific option. Thanks