Search code examples
gitrepositorygit-remote

Retrieve missing files from remote repo?


I accidentally deleted a few files from my local git repo.

I have not pushed this change to the remote.

Is there a easy way to get these files back from the remote?

Normally I would just do a git clone but it seems there should be a better way.


Solution

  • git checkout .
    

    How do I discard unstaged changes in Git?