Git push failed #63670
Replies: 2 comments 2 replies
-
To fix this error, you need to either merge the histories of the two repositories, or you need to reset your local repository to the state of the remote repository. To merge the histories of the two repositories, you can use the git merge command. For example, if the name of your remote repository is
This command will merge the To reset your local repository to the state of the remote repository, you can use the git reset command. For example, if the name of your remote repository is
|
Beta Was this translation helpful? Give feedback.
-
Body
I've developed a project, and then I wanted to upload it on github.
So I created repository on github, and then set my project's remote origin as this repository.
After committing all the changes, I've pushed.
But it says error message can't push "fatal: refusing to merge unrelated histories".
Why this comes?
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions