The git error "Fatal: not a git repository" occurs when you attempt to run a git command but weren't inside a git repository. Read this article for ways to solve this error.
The git error "Fatal: refusing to merge unrelated histories" occurs when a user action, such as git merge, can cause the rewriting of history data. It is git's way to ensure the user fully understands the result of their action. Read on how to solve this error.