{"action":"created","issue":{"url":"https://api.github.com/repos/FredrikNoren/ungit/issues/1125","repository_url":"https://api.github.com/repos/FredrikNoren/ungit","labels_url":"https://api.github.com/repos/FredrikNoren/ungit/issues/1125/labels{/name}","comments_url":"https://api.github.com/repos/FredrikNoren/ungit/issues/1125/comments","events_url":"https://api.github.com/repos/FredrikNoren/ungit/issues/1125/events","html_url":"https://github.com/FredrikNoren/ungit/issues/1125","id":349243425,"node_id":"MDU6SXNzdWUzNDkyNDM0MjU=","number":1125,"title":"Warning of local commits lost when checkout origin","user":{"login":"atomic","id":5234009,"node_id":"MDQ6VXNlcjUyMzQwMDk=","avatar_url":"https://avatars2.githubusercontent.com/u/5234009?v=4","gravatar_id":"","url":"https://api.github.com/users/atomic","html_url":"https://github.com/atomic","followers_url":"https://api.github.com/users/atomic/followers","following_url":"https://api.github.com/users/atomic/following{/other_user}","gists_url":"https://api.github.com/users/atomic/gists{/gist_id}","starred_url":"https://api.github.com/users/atomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atomic/subscriptions","organizations_url":"https://api.github.com/users/atomic/orgs","repos_url":"https://api.github.com/users/atomic/repos","events_url":"https://api.github.com/users/atomic/events{/privacy}","received_events_url":"https://api.github.com/users/atomic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-09T18:39:23Z","updated_at":"2018-08-18T00:28:54Z","closed_at":null,"author_association":"NONE","body":"When you have commits locally, and there are new commits on the origin, sometimes, you want to checkout origin branch first, while keeping the local commits somewhere. \r\nWhen you use ungit to checkout origin, all local commits are lost.\r\n\r\nI know this is intended behavior from Git, but this does not mean it's intuitive and I feel for this trap couple of times because of how easy it is to use Ungit. I think there should be a big warning signs whenever you do operations that will remove work permanently, since there is no way to recover the lost commits."},"comment":{"url":"https://api.github.com/repos/FredrikNoren/ungit/issues/comments/414018368","html_url":"https://github.com/FredrikNoren/ungit/issues/1125#issuecomment-414018368","issue_url":"https://api.github.com/repos/FredrikNoren/ungit/issues/1125","id":414018368,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDAxODM2OA==","user":{"login":"atomic","id":5234009,"node_id":"MDQ6VXNlcjUyMzQwMDk=","avatar_url":"https://avatars2.githubusercontent.com/u/5234009?v=4","gravatar_id":"","url":"https://api.github.com/users/atomic","html_url":"https://github.com/atomic","followers_url":"https://api.github.com/users/atomic/followers","following_url":"https://api.github.com/users/atomic/following{/other_user}","gists_url":"https://api.github.com/users/atomic/gists{/gist_id}","starred_url":"https://api.github.com/users/atomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atomic/subscriptions","organizations_url":"https://api.github.com/users/atomic/orgs","repos_url":"https://api.github.com/users/atomic/repos","events_url":"https://api.github.com/users/atomic/events{/privacy}","received_events_url":"https://api.github.com/users/atomic/received_events","type":"User","site_admin":false},"created_at":"2018-08-18T00:28:54Z","updated_at":"2018-08-18T00:28:54Z","author_association":"NONE","body":"Yeah, what I now do is create a temporary branch whenever I want to checkout origin branch without losing my local commits. "}}
{"actor":{"display_login":"atomic"}}