To https://github.com/prakashperam/myrepo
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to
'https://github.com/prakashperam/myrepo.git'
hint: Updates were rejected because the tip of your current branch is
behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details
I have a remote repository. I have copied the code directly from the server(not cloned from git) in which the application is running and made few changes and added files. Now, I want to push the code to the remote repository but it is throwing me above error.
when I do git pull here is the
`` * branch HEAD -> FETCH_HEAD
fatal: refusing to merge unrelated histories
error