sublime text (3200) not allowing git commit ,how to resolve sublime text git commit issue?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















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.


As I am still new to Linux/Ubuntu so 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 !










share|improve this question























  • @dessert When I gave command 'git commit -m "Initial commit" ' it didn't create any problem and gave following output 'git commit -m "Initial commit" [master (root-commit) 95d53e5] Initial commit 3 files changed, 14 insertions(+) create mode 100644 css/app.css create mode 100644 index.html create mode 100644 js/app.js '

    – user716691
    Mar 23 at 11:06


















0















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.


As I am still new to Linux/Ubuntu so 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 !










share|improve this question























  • @dessert When I gave command 'git commit -m "Initial commit" ' it didn't create any problem and gave following output 'git commit -m "Initial commit" [master (root-commit) 95d53e5] Initial commit 3 files changed, 14 insertions(+) create mode 100644 css/app.css create mode 100644 index.html create mode 100644 js/app.js '

    – user716691
    Mar 23 at 11:06














0












0








0








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.


As I am still new to Linux/Ubuntu so 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 !










share|improve this question














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.


As I am still new to Linux/Ubuntu so 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 !







command-line 18.04 git sublime-text






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 23 at 8:35









user716691user716691

4728




4728













  • @dessert When I gave command 'git commit -m "Initial commit" ' it didn't create any problem and gave following output 'git commit -m "Initial commit" [master (root-commit) 95d53e5] Initial commit 3 files changed, 14 insertions(+) create mode 100644 css/app.css create mode 100644 index.html create mode 100644 js/app.js '

    – user716691
    Mar 23 at 11:06



















  • @dessert When I gave command 'git commit -m "Initial commit" ' it didn't create any problem and gave following output 'git commit -m "Initial commit" [master (root-commit) 95d53e5] Initial commit 3 files changed, 14 insertions(+) create mode 100644 css/app.css create mode 100644 index.html create mode 100644 js/app.js '

    – user716691
    Mar 23 at 11:06

















@dessert When I gave command 'git commit -m "Initial commit" ' it didn't create any problem and gave following output 'git commit -m "Initial commit" [master (root-commit) 95d53e5] Initial commit 3 files changed, 14 insertions(+) create mode 100644 css/app.css create mode 100644 index.html create mode 100644 js/app.js '

– user716691
Mar 23 at 11:06





@dessert When I gave command 'git commit -m "Initial commit" ' it didn't create any problem and gave following output 'git commit -m "Initial commit" [master (root-commit) 95d53e5] Initial commit 3 files changed, 14 insertions(+) create mode 100644 css/app.css create mode 100644 index.html create mode 100644 js/app.js '

– user716691
Mar 23 at 11:06










1 Answer
1






active

oldest

votes


















2














If an editor is set in the git config git commit called without -m or -F will try to open this editor for you to provide a commit message, which is failing in your case. You can either only commit providing a commit message



git commit -m "my commit message"


or change the configuration, e.g. remove the editor lines with



git config --unset-all core.editor


or correct the setting with:



git config --global core.editor "subl -n -w"


Further reading:




  • How can I fix git commit error “Waiting for your editor to close the file…” with VS Code?

  • Associating text editors with Git






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1128020%2fsublime-text-3200-not-allowing-git-commit-how-to-resolve-sublime-text-git-com%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    If an editor is set in the git config git commit called without -m or -F will try to open this editor for you to provide a commit message, which is failing in your case. You can either only commit providing a commit message



    git commit -m "my commit message"


    or change the configuration, e.g. remove the editor lines with



    git config --unset-all core.editor


    or correct the setting with:



    git config --global core.editor "subl -n -w"


    Further reading:




    • How can I fix git commit error “Waiting for your editor to close the file…” with VS Code?

    • Associating text editors with Git






    share|improve this answer




























      2














      If an editor is set in the git config git commit called without -m or -F will try to open this editor for you to provide a commit message, which is failing in your case. You can either only commit providing a commit message



      git commit -m "my commit message"


      or change the configuration, e.g. remove the editor lines with



      git config --unset-all core.editor


      or correct the setting with:



      git config --global core.editor "subl -n -w"


      Further reading:




      • How can I fix git commit error “Waiting for your editor to close the file…” with VS Code?

      • Associating text editors with Git






      share|improve this answer


























        2












        2








        2







        If an editor is set in the git config git commit called without -m or -F will try to open this editor for you to provide a commit message, which is failing in your case. You can either only commit providing a commit message



        git commit -m "my commit message"


        or change the configuration, e.g. remove the editor lines with



        git config --unset-all core.editor


        or correct the setting with:



        git config --global core.editor "subl -n -w"


        Further reading:




        • How can I fix git commit error “Waiting for your editor to close the file…” with VS Code?

        • Associating text editors with Git






        share|improve this answer













        If an editor is set in the git config git commit called without -m or -F will try to open this editor for you to provide a commit message, which is failing in your case. You can either only commit providing a commit message



        git commit -m "my commit message"


        or change the configuration, e.g. remove the editor lines with



        git config --unset-all core.editor


        or correct the setting with:



        git config --global core.editor "subl -n -w"


        Further reading:




        • How can I fix git commit error “Waiting for your editor to close the file…” with VS Code?

        • Associating text editors with Git







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 23 at 11:59









        dessertdessert

        25.4k673107




        25.4k673107






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1128020%2fsublime-text-3200-not-allowing-git-commit-how-to-resolve-sublime-text-git-com%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            數位音樂下載

            格利澤436b

            When can things happen in Etherscan, such as the picture below?