Git deleted files sticking around. How do i get a clean working directory? -
so i'm refactoring views in haml in separate haml branch. accidentally removed new haml views instead of old erb views.
$ git rm app/views/projects/edit.html.haml app/views/projects/new.html.haml .....
so did reset
$ git reset head app/views/projects/edit.html.haml app/views/projects/new.html.haml ..... unstaged changes after reset: d app/views/projects/_form.html.erb d app/views/projects/edit.html.erb d app/views/projects/edit.html.haml . . .
git status shows
$ git status # on branch haml # changes not staged commit: # (use "git add/rm <file>..." update committed) # (use "git checkout -- <file>..." discard changes in working directory) # deleted: app/views/projects/_form.html.erb # deleted: app/views/projects/edit.html.erb # deleted: app/views/projects/edit.html.haml . . .
where go here in order keep haml files , clean working directory?
im sure simple rather ask make worse. thanks
you need reset --hard
, update working directory.
Comments
Post a Comment