github错误解决

来源:互联网 发布:淘宝跑包 编辑:程序博客网 时间:2024/06/05 16:45

错误提示:

To git@bitbucket.org:devDami/devdame.git

 ! [rejected]        master -> master (non-fast-forward)

error: failed to push some refs to 'git@bitbucket.org:devDami/devdame.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 master      <========== Switch to the branch you want to push togit pull origin master   <========== Get latest from remote repositorygit pull origin mybranch <========== Merge in changes from "mybranch"======== Resolve any issues ========git push origin master   <========== Push the merged changes


错误提示:

The authenticity of host 'bitbucket.org (131.103.20.167)' can't be established.

RSA key fingerprint is 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40.


解决办法:

 ssh  -o StrictHostKeyChecking=no  192.168.0.130



0 0
原创粉丝点击