YogeshChauhan . com

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

in Misc 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!

amazon

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 How to Use SQL MAX() Function with Dates? #6 PHP Login System using PDO Part 1: Create User Registration Page

Recently Posted

Jun 16 What are Stored Procedures for SQL Server? Jun 16 What are Class Constants in PHP? Jun 15 A short basic guide on states in React Jun 15 How to define constants in PHP? Jun 15 How to define visibility for a property in PHP? Jun 15 How to use @if and @else in SCSS?

You might also like these

How to check if checkbox is checked or not using JavaScript?JavaScriptSorting Arrays in JavaScriptJavaScriptDROP DATABASE (remove a database) from PostgresPostgresHow to Use ROLLUP Operator in SQL and MySQL?SQL/MySQLDebugging in WordPress Part 2: WP_DEBUG_LOG and WP_DEBUG_DISPLAYWordPressWhy do we need HAVING Clause in SQL?SQL/MySQLHow Routing works in Angular?AngularFor In Loop in Swift for BeginnersSwiftA short basic guide on states in ReactReactCurrencyPipe in Angular 9 with ExamplesAngularperspective property in CSSCSSWhat are Conditional Tags in WordPress?WordPress