赞
踩
可以不创建README.md文件,省得推送项目时报错,
- 16:04:07.007: [tlzf] git -c ... push --progress --porcelain origin refs/heads/master:refs/heads/master --set-upstream
- error: failed to push some refs to 'http://10.10.10.10/cesp/tlzf.git'
- hint: Updates were rejected because the remote contains work that you do
- To http://10.10.10.10/cesp/tlzf.git
- ! refs/heads/master:refs/heads/master [rejected] (fetch first)
- hint: not have locally. This is usually caused by another repository pushing
- Done
- hint: to the same ref. You may want to first integrate the remote changes
- hint: (e.g., 'git pull ...') before pushing again.
- hint: See the 'Note about fast-forwards' in 'git push --help' for details.
先拉一下,允许不相关的历史记录
git pull origin master --allow-unrelated-histories
可以直接在idea的终端里敲命令
idea的终端可以切换到Git Bash
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。