Git Error Messages
Distributed version control system.All Git pages
- error: failed to push some refs (rejected, fetch first)git push is rejected with failed to push some refs when the remote branch has commits you do not have. Pull or fetch and rebase first, then push again safely.
- fatal: not a git repository (or any of the parent directories): .gitGit prints not a git repository when the current folder and none of its parents contain a .git directory. cd into the repository, run git init, or set GIT_DIR.
- fatal: refusing to merge unrelated historiesGit refuses to merge two branches that share no common commit, for example a new local repo and a remote created with a README. Use --allow-unrelated-histories.