Ad

shanemichel
asked Nov 23 2017
Answer
just follow below step to overcome this issue.......!
git checkout master
# gitmerege origin/master --allow-unrelated-histories
# git add filename .
# git commit
# git push origin master

arunkumarak
asked Nov 23 2017
edited Oct 05 2018
The Following Commands will help Fixing the Issue
#gitmerege origin/master --allow-unrelated-histories
#git add filename .
#git commit
#git push origin master

linuxhelp
asked Jan 29 2019
fatal: refusing to merge unrelated histories
when i try to push my file into git server it shows below error.....?
shane@my-pc MINGW64 /e/git-pjt (master)
$ git pull origin master
From ssh://192.168.7.208:27692/shane/linuxpjt
* branch master -> FETCH_HEAD
fatal: refusing to merge unrelated histories