Git heartache experience
After this mistake, I found several ways, but they didn’t solve my problem. Later, I came across a low-key God’s opinion:
I just tried:
I faced same problem and I used –allow-empty.
$ git commit -m "initial commit" --allow-empty
...
$ git push
...
Similar Posts:
- [Solved] Git remote:error:refusing to update checked out branch:refs/heads/master”
- [Cherry-pick Failed Error merging] You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists). Please, commit your changes before you merge.
- git this exceeds GitHub’s file size limit of 100.00 MB
- error: src refspec master does not match any [How to Solve]
- Sourcetree / git solves the problem of pre commit hook failed
- Updates were rejected because the remote contains work that you do
- Vue: How to use Vue-router in Axios
- VSCode git commit Error: No such file or directory [How to Solve]