0

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

Git gitlab Git Bash Add a comment
shanemichel
asked Nov 23 2017

Answer

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
Add a comment
arunkumarak
asked Nov 23 2017
edited Oct 05 2018
Post your Answer
0

The Following Commands will help Fixing the Issue

#gitmerege origin/master --allow-unrelated-histories

#git add filename .

#git commit

#git push origin master

Add a comment
linuxhelp
asked Jan 29 2019
Post your Answer