not git push



  • Hello. I've got the git file on the next situation. When git adds everything normal, git commit, too, and when I write git push origin master, there's such a mistake:

    *To git@github.com:triodjangopiter/junior.git
     ! [rejected]        master -> master (non-fast-forward)
    error: failed to push some refs to 'git@github.com:triodjangopiter/junior.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.*
    

    Please help me. Thank you.



  • I solved the problem with the team:

    git branch --set-upstream-to=origin/master
    

    Thank you, everyone.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2