{"action":"created","issue":{"url":"https://api.github.com/repos/magit/magit/issues/2076","labels_url":"https://api.github.com/repos/magit/magit/issues/2076/labels{/name}","comments_url":"https://api.github.com/repos/magit/magit/issues/2076/comments","events_url":"https://api.github.com/repos/magit/magit/issues/2076/events","html_url":"https://github.com/magit/magit/issues/2076","id":95199352,"number":2076,"title":"2.1.0 makes it easy to push a topic branch to master by accident","user":{"login":"greghendershott","id":265119,"avatar_url":"https://avatars.githubusercontent.com/u/265119?v=3","gravatar_id":"","url":"https://api.github.com/users/greghendershott","html_url":"https://github.com/greghendershott","followers_url":"https://api.github.com/users/greghendershott/followers","following_url":"https://api.github.com/users/greghendershott/following{/other_user}","gists_url":"https://api.github.com/users/greghendershott/gists{/gist_id}","starred_url":"https://api.github.com/users/greghendershott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greghendershott/subscriptions","organizations_url":"https://api.github.com/users/greghendershott/orgs","repos_url":"https://api.github.com/users/greghendershott/repos","events_url":"https://api.github.com/users/greghendershott/events{/privacy}","received_events_url":"https://api.github.com/users/greghendershott/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magit/magit/labels/discussion","name":"discussion","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-15T13:53:02Z","updated_at":"2015-07-17T16:01:07Z","closed_at":"2015-07-17T15:57:53Z","body":"Maybe I'm an idiot but these changes discussed in #2009 seem really dangerous for people used to <2.1.0.\r\n\r\nThe very bad thing I just did:\r\n\r\n- Use `b c` to create a topic branch based off master.\r\n- Realize it didn't switch there automatically. Use `b v` to switch to `topic`.\r\n- Make a commit.\r\n- `P P` to push.\r\n\r\nAnd guess what? **I've just pushed to fricking master.** Ouch.\r\n\r\nWorse, still not noticing the remote was `master`, I did a `P -f P` to force-push an amended commit for a trivial mistake -- hey it's just a topic branch -- and have Travis CI to re-test.\r\n\r\n**So I ended up force-pushing to master on a public project.** Ouch^2\r\n\r\n[I switched back to master, and did a force push of _that_. Which hopefully resolved things, and hopefully no one tried to pull during the 10 minutes this was fubared.]\r\n\r\nThis is with `magit-version` `\"20150713.2244\"`\r\n\r\n---\r\n\r\nAgain, maybe I am idiot but this seems like a pretty huge UX issue for people upgrading, especially as it results in a kind of data \"loss\" (or at least \"mess-up-age\" and embarrassment.)\r\n\r\nAlthough this seems related to #2009 I think this specific scenario is worth calling out on its own."},"comment":{"url":"https://api.github.com/repos/magit/magit/issues/comments/122326759","html_url":"https://github.com/magit/magit/issues/2076#issuecomment-122326759","issue_url":"https://api.github.com/repos/magit/magit/issues/2076","id":122326759,"user":{"login":"tarsius","id":25046,"avatar_url":"https://avatars.githubusercontent.com/u/25046?v=3","gravatar_id":"","url":"https://api.github.com/users/tarsius","html_url":"https://github.com/tarsius","followers_url":"https://api.github.com/users/tarsius/followers","following_url":"https://api.github.com/users/tarsius/following{/other_user}","gists_url":"https://api.github.com/users/tarsius/gists{/gist_id}","starred_url":"https://api.github.com/users/tarsius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarsius/subscriptions","organizations_url":"https://api.github.com/users/tarsius/orgs","repos_url":"https://api.github.com/users/tarsius/repos","events_url":"https://api.github.com/users/tarsius/events{/privacy}","received_events_url":"https://api.github.com/users/tarsius/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T16:01:07Z","updated_at":"2015-07-17T16:01:07Z","body":"Mentioning #1485, because the point raised here is yet another point I have to remember when tackling that."}}