YogeshChauhan.com

Solution for the error Commit failed – exit code 1 received in Desktop Github

July 28, 2020

From GitHub Desktop Team:

Some users have run into this error due to having nested .git directories. Please try searching your repository to see if you have multiple .git directories.

For most users, the above solution should work. If that doesn't work then check if you have added files to your index. You can do that using the command line — basically check your git status.

If you commit changes in sub-module then GitHub Desktop is able to push and/or commit changes after that. After sub-module is committed manually SHA1 changes from dirty. At this point I can commit to main repo.

Sometimes, you might not have any nested .git folders. You can just remove the repo from GitHub Desktop and add it again. You only need to remove it from GitHub and not from your hard drive.

There are few other solutions available on the GitHub's issues page. Good luck!

dreamhost

Most Read

#1 How to check if radio button is checked or not using JavaScript? #2 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #3 How to uninstall Cocoapods from the Mac OS? #4 How to Use SQL MAX() Function with Dates? #5 How to add Read More Read Less Button using JavaScript? #6 PHP Login System using PDO Part 1: Create User Registration Page

Recently Posted

Apr 7 Solution for “Yarn build: Failed because of a stylelint error” Apr 7 Make sure your links have descriptive text Apr 7 How to add Laravel to WordPress using Sage theme (and install Tailwind CSS)? Apr 2 How to create a sidebar using pure CSS? Apr 1 How to switch dark and light themes using pure CSS? Apr 1 How to calculate elapsed time in JavaScript?

You might also like these

How to show slider value in HTML5 range input using JavaScript?HTMLSQL GROUP BY StatementSQL/MySQLHow to merge arrays in JavaScript?JavaScriptSome interesting HTML Input Attributes to rememberHTMLHow to Use the EXISTS and NOT EXISTS Operator with a Subquery in SQL and MySQL?SQL/MySQLA Quick Comparison of JOIN and Subquery in SQLSQL/MySQLJavaScript arrays: a separate data type or Objects?JavaScriptIs Software Really Eating The World? I don’t think soMiscinclude, include_once, require, require_once in PHPPHPSQL Left JoinSQL/MySQLThe simple difference between var, let and const in JavascriptJavaScriptHow to change value of a span tag using a reference from another div using jQuery?jQuery