git新建分支push代码失败

$ git push --set-upstream origin lsc-security
To codeup.aliyun.com:fruits/pitaya/product/pa/pty-security.git
 ! [rejected]        lsc-security -> lsc-security (non-fast-forward)
error: failed to push some refs to '[email protected]:fruits/pitaya/product/pa/pty-security.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 checkout -b develop origin/develop

要这样不要直接checkout

你可能感兴趣的:(git)