Git credentials not found, exit status 1, error: failed to push some refs to filename.git
See original GitHub issueDescription
When I tried to push my work from github desktop, the above error in title was shown.
Version
GitHub Desktop version: Version 1.0.0
Steps to Reproduce
- I pushed some files on to github. The error was shown.
- Then I tried to delete the files in my desktop, so that I could push no changes. That did not work.
- Then I tried to revert my commits as shown.
The error is still the same.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
How to Fix 'failed to push some refs to' Git Errors - Komodor
To fix this issue, run git pull on your local repository. This should allow you to push to origin again.
Read more >git error: failed to push some refs to remote - Stack Overflow
(Note: starting Oct. 2020, any new repository is created with the default branch main , not master . And you can rename existing...
Read more >Failed to Push Some Refs | Git Error - Assembla Help Center
This means that someone else pushed a commit to the same branch you're pushing to, but you don't have that commit on your...
Read more >z|--null] name [value [value_regex]] git config [<file-option>]
This command will fail with non-zero status upon error. Some exit codes are: The section or key is invalid (ret=1),. no section or...
Read more >Git Hooks - Git SCM
If you want to use the bundled hook scripts, you'll have to rename them; their file names all end with .sample . To...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tvn-quinn it looks like you’ve encountered #2747. As a workaround, you can remove these hooks as the repository isn’t LFS-enabled:
Go up to the
Repository
menu and selectOpen in Command Prompt
. It’ll launch Command Prompt in the repository. Then run copy and pastedel /f .git\hooks\*
into Command Prompt and hit <kbd>Return</kbd>.thanks so much 😃