I am using Ubuntu 18.04 ,I have removed previous version of sublime text through Ubuntu Software and then installed it through sublime text's official documentation given Here .
After that Whenever I am trying to
git commit it gives the following message and does nothing .
git commit hint: Waiting for your editor to close the file... '/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl' -n -w: 1: '/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl' -n -w: /Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl: not found error: There was a problem with the editor ''/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl' -n -w'. Please supply the message using either -m or -F option.
I want to understand what exactly this issue is and how to resolve it .my current installed version of sublime text is build 3200 . Kindly suggest a way to resolve this issue ,thank you !