用 sourcetree 建立两个远端, Github 成功,百度效率云失败

2016-06-08 19:04:44 +08:00
 mfanming
3010 次点击
所在节点    git
3 条回复
mfanming
2016-06-08 19:05:43 +08:00
以下错误提示,看不懂...

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream baidu master:master
Pushing to https://mfanming_126.com_sanfei@xiaolvyun.baidu.com/git/sanfei/new
To https://mfanming_126.com_sanfei@xiaolvyun.baidu.com/git/sanfei/new
! [rejected] master -> master (non-fast-forward)



error: failed to push some refs to 'https://mfanming_126.com_sanfei@xiaolvyun.baidu.com/git/sanfei/new'
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.
mfanming
2016-06-08 19:09:29 +08:00
配置文件( config )
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[remote "origin"]
url = https://github.com/省略
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "baidu"]
url = https://mfanming_126.com_sanfei@xiaolvyun.baidu.com/git/sanfei/new
fetch = +refs/heads/*:refs/remotes/baidu/*
mfanming
2016-06-08 19:11:42 +08:00
之前为百度效率云建立一个远程的时候,成功了。
第一次搞两个远程,安全第一啊,两处有备份

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/284455

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX