I had the same problem and it was related to the .gitattributes
file.
However the file type that caused the problem was not specified in the .gitattributes
.
I was able to solve the issue by simply running
git rm .gitattributes
git add -A
git reset --hard
More Related Contents:
- How do I revert a Git repository to a previous commit?
- Delete commits from a branch in Git
- Move existing, uncommitted work to a new branch in Git
- How can I move HEAD back to a previous location? (Detached head) & Undo commits
- How can I undo git reset –hard HEAD~1?
- Undo git reset –hard with uncommitted files in the staging area
- What’s the difference between “git reset” and “git checkout”?
- Undo a particular commit in Git that’s been pushed to remote repos
- How do I recover/resynchronise after someone pushes a rebase or a reset to a published branch?
- How do I use ‘git reset –hard HEAD’ to revert to a previous commit? [duplicate]
- What’s the difference between Git Revert, Checkout and Reset?
- What is the `git restore` command and what is the difference between `git restore` and `git reset`?
- Recover files that were added to the index but then removed by a git reset
- How do I delete a commit from a branch?
- git undo all uncommitted or unsaved changes
- Why are there two ways to unstage a file in Git?
- How to git reset –hard a subdirectory
- Why git can’t do hard/soft resets by path?
- How can I revert uncommitted changes including files and folders?
- Why there are two ways to unstage a file in Git?
- git reset vs git reset HEAD
- What is difference between ‘git reset –hard HEAD~1’ and ‘git reset –soft HEAD~1’?
- Can I delete a git commit but keep the changes?
- How can I automatically push after committing in Git?
- What is the best practice for dealing with passwords in git repositories?
- How do you use “git –bare init” repository?
- Why is git AuthorDate different from CommitDate?
- How can I push my existing Git repository to Team Foundation Service
- Is there anyway to undo git push -f?
- How to improve git log performance?