{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4987","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4987/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4987/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4987/events","html_url":"https://github.com/scikit-learn/scikit-learn/pull/4987","id":95465303,"number":4987,"title":"Ldq qda doc","user":{"login":"SPL361","id":5088568,"avatar_url":"https://avatars.githubusercontent.com/u/5088568?v=3","gravatar_id":"","url":"https://api.github.com/users/SPL361","html_url":"https://github.com/SPL361","followers_url":"https://api.github.com/users/SPL361/followers","following_url":"https://api.github.com/users/SPL361/following{/other_user}","gists_url":"https://api.github.com/users/SPL361/gists{/gist_id}","starred_url":"https://api.github.com/users/SPL361/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SPL361/subscriptions","organizations_url":"https://api.github.com/users/SPL361/orgs","repos_url":"https://api.github.com/users/SPL361/repos","events_url":"https://api.github.com/users/SPL361/events{/privacy}","received_events_url":"https://api.github.com/users/SPL361/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-16T15:53:16Z","updated_at":"2015-07-17T08:10:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/4987","html_url":"https://github.com/scikit-learn/scikit-learn/pull/4987","diff_url":"https://github.com/scikit-learn/scikit-learn/pull/4987.diff","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/4987.patch"},"body":"This is a small reorganisation/clean-up of the documentation for LDA/QDA, answering issue #4970 . First pull-request ever, hope I'm doing this right."},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/122211903","html_url":"https://github.com/scikit-learn/scikit-learn/pull/4987#issuecomment-122211903","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4987","id":122211903,"user":{"login":"lesteve","id":1680079,"avatar_url":"https://avatars.githubusercontent.com/u/1680079?v=3","gravatar_id":"","url":"https://api.github.com/users/lesteve","html_url":"https://github.com/lesteve","followers_url":"https://api.github.com/users/lesteve/followers","following_url":"https://api.github.com/users/lesteve/following{/other_user}","gists_url":"https://api.github.com/users/lesteve/gists{/gist_id}","starred_url":"https://api.github.com/users/lesteve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesteve/subscriptions","organizations_url":"https://api.github.com/users/lesteve/orgs","repos_url":"https://api.github.com/users/lesteve/repos","events_url":"https://api.github.com/users/lesteve/events{/privacy}","received_events_url":"https://api.github.com/users/lesteve/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T08:10:52Z","updated_at":"2015-07-17T08:10:52Z","body":"> I have made a pull-request from my fork, where I have changed only one file, the documentation file lda_qda.rst. However the pull-request shows a large number of modified files; I seem to have done something wrong. Could someone more familiar with github explain what is going on? Thanks\r\n\r\nIt's hard to guess exactly how you got there but here is what I would do.\r\n\r\nFirst make a back-up of the only file you have modified\r\n\r\n```\r\ncp lda_qda.rst /tmp/lda_qda.rst\r\n```\r\n\r\nGet your old branch out of the way:\r\n\r\n```\r\ngit checkout master\r\ngit branch -m ldq-qda-doc ldq-qda-doc-bak\r\n```\r\n\r\nGet your master in a clean state. It might not be necessary but just in case:\r\n\r\n```\r\ngit checkout master\r\ngit reset --hard upstream/master \r\ngit pull upstream master\r\n```\r\n\r\nStart a new fresh branch off master\r\n\r\n```\r\ngit checkout -b ldq-qda-doc\r\n```\r\n\r\nthen copy your backed-up file to \r\n\r\n```\r\ncp /tmp/lda_qda.rst lda_qda.rst\r\n```\r\n\r\nIt should be in a good state now. git diff to make sure everything is as you expected, git add, git commit and git push origin ldq-qda-doc --force should hopefully fix it."}}