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

Tags: Git gitlab Git Bash
user image Author :   shanemichel
0

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
user image
arunkumarak November 24, 2017
Add comment