question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Git credentials not found, exit status 1, error: failed to push some refs to filename.git

See original GitHub issue

Description

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

  1. I pushed some files on to github. The error was shown.
  2. Then I tried to delete the files in my desktop, so that I could push no changes. That did not work.
  3. Then I tried to revert my commits as shown.

inkedscreenshot 2017-09-20 22 51 29_li

The error is still the same.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
shiftkeycommented, Sep 21, 2017

@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 select Open in Command Prompt. It’ll launch Command Prompt in the repository. Then run copy and paste del /f .git\hooks\* into Command Prompt and hit <kbd>Return</kbd>.

0reactions
DoxaDevColtocommented, Oct 13, 2017

thanks so much 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found