Yogesh Chauhan's Blog

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

in Miscellaneous on 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!

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 add Read More Read Less Button using JavaScript? #4 How to uninstall Cocoapods from the Mac OS? #5 PHP Login System using PDO Part 1: Create User Registration Page #6 How to Use SQL MAX() Function with Dates?

Recently Posted

#Aug 15 Is PHP still good for back-end programming? #Aug 10 How to create a multisite network in WordPress? #Aug 3 How to create a circle that follows a cursor using JavaScript and CSS? #Aug 3 How to make a curtain slider using jQuery and CSS? #Aug 2 How to progressively load images and add a blurry placeholder? #Aug 1 How to create a placeholder loader (throbber) using CSS?
You might also like these
How to add Google Map in WordPress using ACF?WordPressHow to convert an object from API to JSON array in Angular 9?AngularHow to create a cross-browser smooth scrolling with jQuery?jQueryHow Routing works in Angular?AngularArray.from() Method in JavaScriptJavaScriptHow to install Gulp with WordPress?WordPressAn Example of Cross-site Scripting (XSS) Attack in PHP and How to Avoid It?PHP3 JavaScript methods to use when you want to go back and forth in historyJavaScriptJavaScript Number MethodsJavaScriptAdvanced nesting in Sass (SCSS) using at-rootSCSSCanvas Drawing in HTML5HTMLHow services and dependency injection work in Angular?Angular