{"action":"created","issue":{"url":"https://api.github.com/repos/git-for-windows/git/issues/710","repository_url":"https://api.github.com/repos/git-for-windows/git","labels_url":"https://api.github.com/repos/git-for-windows/git/issues/710/labels{/name}","comments_url":"https://api.github.com/repos/git-for-windows/git/issues/710/comments","events_url":"https://api.github.com/repos/git-for-windows/git/issues/710/events","html_url":"https://github.com/git-for-windows/git/issues/710","id":144451601,"number":710,"title":"when i git rebase -i error","user":{"login":"yunyu2019","id":9349318,"avatar_url":"https://avatars.githubusercontent.com/u/9349318?v=3","gravatar_id":"","url":"https://api.github.com/users/yunyu2019","html_url":"https://github.com/yunyu2019","followers_url":"https://api.github.com/users/yunyu2019/followers","following_url":"https://api.github.com/users/yunyu2019/following{/other_user}","gists_url":"https://api.github.com/users/yunyu2019/gists{/gist_id}","starred_url":"https://api.github.com/users/yunyu2019/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yunyu2019/subscriptions","organizations_url":"https://api.github.com/users/yunyu2019/orgs","repos_url":"https://api.github.com/users/yunyu2019/repos","events_url":"https://api.github.com/users/yunyu2019/events{/privacy}","received_events_url":"https://api.github.com/users/yunyu2019/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/git-for-windows/git/labels/invalid","name":"invalid","color":"e6e6e6"},{"url":"https://api.github.com/repos/git-for-windows/git/labels/mcve-required","name":"mcve-required","color":"e11d21"},{"url":"https://api.github.com/repos/git-for-windows/git/labels/missing-info","name":"missing-info","color":"e11d21"},{"url":"https://api.github.com/repos/git-for-windows/git/labels/unclear","name":"unclear","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-30T03:10:57Z","updated_at":"2016-04-04T13:22:08Z","closed_at":null,"body":"### Setup\r\n\r\n - Which version of Git for Windows are you using? 32-bit or 64-bit? Include the\r\n   output of `git version` as well.\r\n\r\n```\r\n$ git --version\r\ngit for window 2.7.4  64-bit\r\n```\r\n\r\n - Which version of Windows are you running? 32-bit or 64-bit?\r\n\r\n```\r\nWindows 7 x64\r\n```\r\n - What options did you set as part of the installation? Or did you choose the\r\n   defaults?\r\n\r\n```\r\ndefaults\r\n```\r\n - Any other interesting things about your environment that might be related\r\n   to the issue you're seeing?\r\n```\r\nno\r\n```\r\n### Details\r\n\r\n - Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other\r\n\r\n```\r\n git Bash\r\n```\r\n - What commands did you run to trigger this issue? If you can provide a\r\n   [Minimal, Complete, and Verifiable example](http://stackoverflow.com/help/mcve)\r\n   this will help us understand the issue.\r\n\r\n```\r\n$ git log\r\ncommit f2554fdc36e45b6dc95e60163964ffdc153b9777\r\nAuthor: yunyu2019 <yunyu2010@yeah.net>\r\nDate:   Fri Apr 1 10:30:58 2016 +0800\r\n\r\n    git\r\n\r\ncommit 593154b42c33d8b34ef694bd4f9edfbfbd9e3325\r\nAuthor: yunyu2019 <yunyu2010@yeah.net>\r\nDate:   Fri Apr 1 10:30:35 2016 +0800\r\n\r\n    456\r\n\r\ncommit 52069a73521918d80584f9d7aa4cea3c8b792679\r\nAuthor: yunyu2019 <yunyu2010@yeah.net>\r\nDate:   Fri Apr 1 10:30:17 2016 +0800\r\n\r\n    123\r\n$ git rebase -i HEAD^^\r\n/mingw64/libexec/git-core/git-rebase--interactive: line 125: + : syntax error: operand expected (error token is \"+ \")\r\n```\r\n - What did you expect to occur after running these commands?\r\n\r\n```\r\npick 593154b 456\r\npick f2554fd git                   i want modify f2554fd  pick to s\r\n\r\n# Rebase 52069a7..f2554fd onto 52069a7 (2 command(s))\r\n#\r\n# Commands:\r\n# p, pick = use commit\r\n# r, reword = use commit, but edit the commit message\r\n# e, edit = use commit, but stop for amending\r\n# s, squash = use commit, but meld into previous commit\r\n# f, fixup = like \"squash\", but discard this commit's log message\r\n# x, exec = run command (the rest of the line) using shell\r\n# d, drop = remove commit\r\n#\r\n# These lines can be re-ordered; they are executed from top to bottom.\r\n#\r\n# If you remove a line here THAT COMMIT WILL BE LOST.\r\n#\r\n# However, if you remove everything, the rebase will be aborted.\r\n#\r\n# Note that empty commits are commented out\r\n\r\nlast when it's successful,the message is :\r\n$ git rebase -i HEAD^^\r\n[detached HEAD 6793cce] git\r\n Date: Fri Apr 1 10:30:35 2016 +0800\r\n 1 file changed, 3 insertions(+), 1 deletion(-)\r\nSuccessfully rebased and updated refs/heads/master.\r\n```\r\n\r\n - What actually happened instead?\r\n```\r\ngive me the error message:/mingw64/libexec/git-core/git-rebase--interactive: line 125: + : syntax error: operand expected (error token is \"+ \")\r\n```\r\n - If the problem was occurring with a specific repository, can you provide the\r\n   URL to that repository to help us with testing?\r\n```\r\n this is my local env,i can't provide a url.\r\n```\r\n###  more information\r\nthis issues  happend on git for window 2.7.4 64bit,then I upgrade to git for window 2.8.0 64bit,this issues is still.\r\nwhen i build a new repository,then i merge some commit use git rebase -i ,this question is still.last i use git for windows 2.7.0 64bit to avoid this issues."},"comment":{"url":"https://api.github.com/repos/git-for-windows/git/issues/comments/205294070","html_url":"https://github.com/git-for-windows/git/issues/710#issuecomment-205294070","issue_url":"https://api.github.com/repos/git-for-windows/git/issues/710","id":205294070,"user":{"login":"dscho","id":127790,"avatar_url":"https://avatars.githubusercontent.com/u/127790?v=3","gravatar_id":"","url":"https://api.github.com/users/dscho","html_url":"https://github.com/dscho","followers_url":"https://api.github.com/users/dscho/followers","following_url":"https://api.github.com/users/dscho/following{/other_user}","gists_url":"https://api.github.com/users/dscho/gists{/gist_id}","starred_url":"https://api.github.com/users/dscho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dscho/subscriptions","organizations_url":"https://api.github.com/users/dscho/orgs","repos_url":"https://api.github.com/users/dscho/repos","events_url":"https://api.github.com/users/dscho/events{/privacy}","received_events_url":"https://api.github.com/users/dscho/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T13:22:08Z","updated_at":"2016-04-04T13:22:08Z","body":"> Is it possible just fix line 125?\r\n\r\n@tanmatra I see nothing wrong with line 125. The arithmetic operation's arguments should not be empty, but they are apparently empty.\r\n\r\nSo this is what you can do to help resolve this issue: Come up with a simple example where you can reliably reproduce the problem, then publish that repository, then mention the public URL of this repository here."}}