{"action":"created","issue":{"url":"https://api.github.com/repos/magit/magit/issues/2437","labels_url":"https://api.github.com/repos/magit/magit/issues/2437/labels{/name}","comments_url":"https://api.github.com/repos/magit/magit/issues/2437/comments","events_url":"https://api.github.com/repos/magit/magit/issues/2437/events","html_url":"https://github.com/magit/magit/issues/2437","id":121538647,"number":2437,"title":"How can I undelete a file?","user":{"login":"andreicristianpetcu","id":922368,"avatar_url":"https://avatars.githubusercontent.com/u/922368?v=3","gravatar_id":"","url":"https://api.github.com/users/andreicristianpetcu","html_url":"https://github.com/andreicristianpetcu","followers_url":"https://api.github.com/users/andreicristianpetcu/followers","following_url":"https://api.github.com/users/andreicristianpetcu/following{/other_user}","gists_url":"https://api.github.com/users/andreicristianpetcu/gists{/gist_id}","starred_url":"https://api.github.com/users/andreicristianpetcu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreicristianpetcu/subscriptions","organizations_url":"https://api.github.com/users/andreicristianpetcu/orgs","repos_url":"https://api.github.com/users/andreicristianpetcu/repos","events_url":"https://api.github.com/users/andreicristianpetcu/events{/privacy}","received_events_url":"https://api.github.com/users/andreicristianpetcu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-10T17:31:36Z","updated_at":"2015-12-10T17:55:43Z","closed_at":"2015-12-10T17:44:05Z","body":"I have a file commited in git, and I deleted in from my working tree. \r\n\r\n```bash\r\n$git status\r\nChanges not staged for commit:\r\n  (use \"git add <file>...\" to update what will be committed)\r\n  (use \"git checkout -- <file>...\" to discard changes in working directory)\r\n\r\n        deleted:    my-file.sh\r\n```\r\nI want to do the equivalent of \r\n```bash\r\n$git checkout -- my-file.sh\r\n$git status\r\nYour branch is up-to-date with 'origin/develop'.\r\nnothing to commit, working directory clean\r\n```\r\nHow do I do this in magit? Thank you!"},"comment":{"url":"https://api.github.com/repos/magit/magit/issues/comments/163702369","html_url":"https://github.com/magit/magit/issues/2437#issuecomment-163702369","issue_url":"https://api.github.com/repos/magit/magit/issues/2437","id":163702369,"user":{"login":"kyleam","id":1297788,"avatar_url":"https://avatars.githubusercontent.com/u/1297788?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleam","html_url":"https://github.com/kyleam","followers_url":"https://api.github.com/users/kyleam/followers","following_url":"https://api.github.com/users/kyleam/following{/other_user}","gists_url":"https://api.github.com/users/kyleam/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleam/subscriptions","organizations_url":"https://api.github.com/users/kyleam/orgs","repos_url":"https://api.github.com/users/kyleam/repos","events_url":"https://api.github.com/users/kyleam/events{/privacy}","received_events_url":"https://api.github.com/users/kyleam/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T17:55:43Z","updated_at":"2015-12-10T17:55:43Z","body":"No worries :)"}}