赞
踩
说明:如果不小心在仓库上创建了一个readme文件,而本地没有这个文件,这个时候如果推送到仓库就会出现问题了。
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://gitee.com/zydltech/reptile-project'
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 --rebase origin master。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。