xcode - 'Discard all changes' has deleted pod files -


i did commit on friday, discard changes on monday, pod related files in trash. realise did wrong, i'm quite inexperienced git etc, need restore files.

has come across before , know do?

description

this should revert home directory state state prior changes refer in original post.

example

  1. run git reflog
  2. find head@{id} (ex. head@{1},head@{2} etc.) prior changes you've made
  3. run git reset --hard head@{id} (id number refering particular head described in point 2.

reference

git reflog

useful link

recovering lost commits git reflog , reset


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -