-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commit failed - exit code 1 received #4432
Comments
@Deanang thanks for reaching out! We require the template to be filled out on all new issues. We do this so that we can be certain we have all the information we need to address your submission efficiently. This allows the maintainers to spend more time fixing bugs, implementing enhancements, and reviewing and merging pull requests. Thanks for understanding and meeting us half way 😀 |
@Deanang some users have run into this error due to having nested .git directories. Can you try searching your repository to see if you have multiple .git directories? |
Closing as inactive. I gather the 👍 on @steveward's comment indicates it's the same issue, and if you haven't found a workaround then please provide more details and we can revisit this. |
Perfect. My issue also got resolved. |
How was your issue resolved? |
@adelra are you also encountering this issue? Is it possible you have nested .git directories? |
Yes, Indeed the problem was due to .git somewhere in my directories. |
I had this very same error without nested .git folders, but it turned out that while I was committing the changes, some of them had been undone in the background |
I solved this by checking git status in terminal. |
I got this error message too. Here is why. I had downloaded some files that hadn't changed locally. In github desktop it showed a list of files all marked "no change". I was trying create a commit because i didn't notice there file change status. A few minutes later they just disappeared from the list. Basically, what it boild down too is you need to some file with some changes otherwise you will get this error. Thanks! |
I just ran into this error while using the Github Windows 10 desktop app. I was trying to remove folders I meant to gitignore from the repo. I followed the guide below to just use command line and it worked! |
I don't know if this will work for others but I found just restarting Github Desktop and quitting out of Atom (where my committed changes were coming from) did the trick! |
Since a lot of people seem to have run into this problem because of having multiple nested |
@ipkpjersi thanks for the feedback. Providing better error messaging is definitely something that is always on our minds (see #7649 for an example). The |
error commit failed-exit 1code receive desktop/desktop#4432 .git 파일이 여러개
I don't know if this was your case, but i was trying to commit from a cloned repository to a rep that i didn't have permit. Then i forked the rep, commited to it, then i made a pull request and it worked. |
I used GitHub Desktop and I got the same yours guys problems. My respective : they don't want folder over another folder . it mean they only want 1 folder and the rest of files will be locate in the folder. |
If anyone still has this issue and nested .git folders are not the cause, check out this thread for another possible solution |
even in the child folder, i had an unknown .git directory. might been wrong created sometimes. |
turned out some other git process was 'corrupted' for me . I had to delete a .git/index file and it worked. |
If you have 2 or more README.md it'll give you an error message |
The same thing happened to me and I'm not sure how to solve it or should just ignore it. So the same error meesage but there was no duplicated .git folder. When I copy updated files (wordpress plugins updated) and commit changes I received error and later I've found that I already uploaded these files. I deleted repository and created new and the same thing happened. Is there any way I can solve it? |
This comment has been minimized.
This comment has been minimized.
The issue is resolved/workaround when you delete the .git file in your nested folder. |
From GitHub Desktop Team if others come upon this issue:
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.
The text was updated successfully, but these errors were encountered: