RE: Re: checkout on an empty directory fails
- From
- René Doß <doss@gmx.de>
- Date
- Jan 5, 2012, 12:38 UTC
- Message-ID
- <4F0599E0.7090902@gmx.de>
- In-Reply-To
- <CACsJy8A42n4t+WqGaTx7vDQ3jP_YkD1bB0WL9amrrg1B4eOx7w@mail.gmail.com>
Thank you for your help. I can not understand what is the mistake? qgit displays me the tree correct. git status says not special informations. Only git checkout . works.
What means the point in checkout?
René
red@linux-nrd1:~/iso/a> git status # On branch master # Changed but not updated: # (use "git add/rm <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # deleted: SP601_RevC_annotated_master_ucf_8-28-09.ucf # deleted: rtl/ether_speed.vhd # deleted: rtl/ether_top.vhd # deleted: rtl/ether_tx.vhd # deleted: rtl/takt.vhd # deleted: sim/makefile # deleted: sim/tb_ether_top.vhd # no changes added to commit (use "git add" and/or "git commit -a")
ed@linux-nrd1:~/iso/a> ls red@linux-nrd1:~/iso/a> git reset --hard HEAD is now at efb7b86 Simulation ergaenzt red@linux-nrd1:~/iso/a> git checkout master Already on 'master' red@linux-nrd1:~/iso/a> git checkout . red@linux-nrd1:~/iso/a> ls rtl sim SP601_RevC_annotated_master_ucf_8-28-09.ucf <--here are the files back!!!! red@linux-nrd1:~/iso/a>