Git + launchpad
Git + launchpad
Posted May 9, 2015 9:46 UTC (Sat) by Wol (subscriber, #4433)In reply to: Git + launchpad by Flimm
Parent article: Git code hosting beta (launchpadblog)
> You can't undo git checkout -- filename or git reset --hard commit, whereas you can do that in Bazaar (it creates a hidden backup file every time).
As has been pointed out, git DOES NOT delete anything unless you try very hard to make it. So "git reset --hard commit" should be easy to undo - "git reset --hard oldhead".
As for "git checkout -- filename", well I guess the old filename was never in git, so how can git recover it?
Cheers,
Wol
