Commit/Push Error

Answered

Hello, I am new to PyCharm and coding so not too familiar with these errors. When attempting to Commit and Push an update file to a copied repository from my school's page, I get an error that the updates were rejected due to the tip of my current branch being behind. It also tells me to use “git pull” before pushing again. However upon using the git pull command, I get an  error that state “fatal: refusing to merge unrelated histories”. Please help, I am now two weeks behind on my assignments and am struggling to catch up.

0
1 comment

Hi,

First error is due to having an non-update branches (most likely histories not being similar) 

Second error is due to: https://stackoverflow.com/questions/37937984/git-refusing-to-merge-unrelated-histories-on-rebase

Are you sure you are trying to push to a correct branch? It seems histories of the branch you have locally and the remote one are not similar. 

0

Please sign in to leave a comment.