{"action":"created","issue":{"url":"https://api.github.com/repos/a14n/dart-ghpages-generator/issues/10","labels_url":"https://api.github.com/repos/a14n/dart-ghpages-generator/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/a14n/dart-ghpages-generator/issues/10/comments","events_url":"https://api.github.com/repos/a14n/dart-ghpages-generator/issues/10/events","html_url":"https://github.com/a14n/dart-ghpages-generator/issues/10","id":77965034,"number":10,"title":"git reset --hard deletes files without asking","user":{"login":"zoechi","id":405837,"avatar_url":"https://avatars.githubusercontent.com/u/405837?v=3","gravatar_id":"","url":"https://api.github.com/users/zoechi","html_url":"https://github.com/zoechi","followers_url":"https://api.github.com/users/zoechi/followers","following_url":"https://api.github.com/users/zoechi/following{/other_user}","gists_url":"https://api.github.com/users/zoechi/gists{/gist_id}","starred_url":"https://api.github.com/users/zoechi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoechi/subscriptions","organizations_url":"https://api.github.com/users/zoechi/orgs","repos_url":"https://api.github.com/users/zoechi/repos","events_url":"https://api.github.com/users/zoechi/events{/privacy}","received_events_url":"https://api.github.com/users/zoechi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-19T06:55:05Z","updated_at":"2015-05-19T08:46:13Z","closed_at":null,"body":"I check in my home directory into a github repo (with a lot of .gitignore) to have versioning for my settings.\r\nWhen I tried your dart-ghpages-generator with a wrong `--root-dir` (probably related to one of the issues I reported recently) the `git reset --hard` deleted all files which were not yet checked in (no harm just a few changes to WebStorm keyboard shortcuts I have to set again).\r\nBut this could cause serious damage and I thing the package should check for not checked-in files and warn/ask before executing `reset`.\r\n"},"comment":{"url":"https://api.github.com/repos/a14n/dart-ghpages-generator/issues/comments/103401357","html_url":"https://github.com/a14n/dart-ghpages-generator/issues/10#issuecomment-103401357","issue_url":"https://api.github.com/repos/a14n/dart-ghpages-generator/issues/10","id":103401357,"user":{"login":"zoechi","id":405837,"avatar_url":"https://avatars.githubusercontent.com/u/405837?v=3","gravatar_id":"","url":"https://api.github.com/users/zoechi","html_url":"https://github.com/zoechi","followers_url":"https://api.github.com/users/zoechi/followers","following_url":"https://api.github.com/users/zoechi/following{/other_user}","gists_url":"https://api.github.com/users/zoechi/gists{/gist_id}","starred_url":"https://api.github.com/users/zoechi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoechi/subscriptions","organizations_url":"https://api.github.com/users/zoechi/orgs","repos_url":"https://api.github.com/users/zoechi/repos","events_url":"https://api.github.com/users/zoechi/events{/privacy}","received_events_url":"https://api.github.com/users/zoechi/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T08:46:13Z","updated_at":"2015-05-19T08:46:13Z","body":"I was definitely before the fix but I don't know if it still can happen. \r\nLosing unrelated files can cause quite some damage therefore I created this issue."}}