{"action":"created","issue":{"url":"https://api.github.com/repos/git-for-windows/git/issues/651","repository_url":"https://api.github.com/repos/git-for-windows/git","labels_url":"https://api.github.com/repos/git-for-windows/git/issues/651/labels{/name}","comments_url":"https://api.github.com/repos/git-for-windows/git/issues/651/comments","events_url":"https://api.github.com/repos/git-for-windows/git/issues/651/events","html_url":"https://github.com/git-for-windows/git/issues/651","id":132481929,"number":651,"title":"Username required when cloning with Plink","user":{"login":"stephenfin","id":1690835,"avatar_url":"https://avatars.githubusercontent.com/u/1690835?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenfin","html_url":"https://github.com/stephenfin","followers_url":"https://api.github.com/users/stephenfin/followers","following_url":"https://api.github.com/users/stephenfin/following{/other_user}","gists_url":"https://api.github.com/users/stephenfin/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenfin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenfin/subscriptions","organizations_url":"https://api.github.com/users/stephenfin/orgs","repos_url":"https://api.github.com/users/stephenfin/repos","events_url":"https://api.github.com/users/stephenfin/events{/privacy}","received_events_url":"https://api.github.com/users/stephenfin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/git-for-windows/git/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/git-for-windows/git/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-02-09T17:32:11Z","updated_at":"2016-02-23T11:54:10Z","closed_at":null,"body":"tl;dr: You need to pass a username into the `git clone` command. I don't know if this is a documentation issue (Known issues) or a bug in the \"wrapper\" around `plink`.\r\n\r\nI ran into a usability issue with Git for Windows when using Plink. The below command, which works perfectly in a *nix environment, fails:\r\n\r\n    git clone example.com:/home/myuser/git/myproject\r\n\r\nThe following error message is given:\r\n\r\n    fatal: protocol error: bad line length character: logi\r\n\r\nI was able to extract the exact command being run by watching the trace (`set GIT_TRACE=1`), and from this I could see the exact command being run. Running this manually gives the real cause of the error:\r\n\r\n    C:\\Users\\myuser\\Documents\\>git clone example.com:/home/myuser/git/myproject\r\n    17:09:23.016776 git.c:348               trace: built-in: git 'clone' 'example.com:/home/myuser/git/myproject'\r\n    Cloning into 'myproject'...\r\n    17:09:23.078143 run-command.c:343       trace: run_command: 'C:\\Program Files(x86)\\PuTTY\\plink.exe' 'example.com' 'git-upload-pack '\\''/home/myuser/git/myproject'\\'''\r\n    fatal: protocol error: bad line length character: logi\r\n    C:\\Users\\myuser\\Documents\\Development>\"C:\\Program Files (x86)\\PuTTY\\plink.exe\" example.com\r\n    login as:\r\n\r\nAppending the username resolves this problem, but it took a little to figure out. This should be fixed/documented, I think?"},"comment":{"url":"https://api.github.com/repos/git-for-windows/git/issues/comments/187669913","html_url":"https://github.com/git-for-windows/git/issues/651#issuecomment-187669913","issue_url":"https://api.github.com/repos/git-for-windows/git/issues/651","id":187669913,"user":{"login":"swiharta","id":323712,"avatar_url":"https://avatars.githubusercontent.com/u/323712?v=3","gravatar_id":"","url":"https://api.github.com/users/swiharta","html_url":"https://github.com/swiharta","followers_url":"https://api.github.com/users/swiharta/followers","following_url":"https://api.github.com/users/swiharta/following{/other_user}","gists_url":"https://api.github.com/users/swiharta/gists{/gist_id}","starred_url":"https://api.github.com/users/swiharta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swiharta/subscriptions","organizations_url":"https://api.github.com/users/swiharta/orgs","repos_url":"https://api.github.com/users/swiharta/repos","events_url":"https://api.github.com/users/swiharta/events{/privacy}","received_events_url":"https://api.github.com/users/swiharta/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T11:54:10Z","updated_at":"2016-02-23T11:54:10Z","body":"I believe my documentation of the issue in a single comment is the best on the entire internet as of right now, actually. I'm not sure what you're asking me to do further. Go ahead and do it yourself I suppose."}}