asquarezone/DevOpsClassRoom

git error

Closed this issue · 4 comments

description:when i want to push master branch it shows error but it does not occur in other branch.
error:
$ git push -u jenorigin master
To https://github.com/sainath2929/jenkins_practice.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/sainath2929/jenkins_practice.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.

$ git pull https://github.com/sainath2929/jenkins_practice.git
From https://github.com/sainath2929/jenkins_practice

  • branch HEAD -> FETCH_HEAD
    fatal: refusing to merge unrelated histories

please remove GitHub credentials from your windows credentials manager