V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
mfanming
V2EX  ›  git

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

  •  1
     
  •   mfanming · 2016-06-08 19:04:44 +08:00 · 3128 次点击
    这是一个创建于 3095 天前的主题,其中的信息可能已经有所发展或是发生改变。
    mfanming
        1
    mfanming  
    OP
       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://[email protected]/git/sanfei/new
    To https://[email protected]/git/sanfei/new
    ! [rejected] master -> master (non-fast-forward)



    error: failed to push some refs to 'https://[email protected]/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
        2
    mfanming  
    OP
       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://[email protected]/git/sanfei/new
    fetch = +refs/heads/*:refs/remotes/baidu/*
    mfanming
        3
    mfanming  
    OP
       2016-06-08 19:11:42 +08:00
    之前为百度效率云建立一个远程的时候,成功了。
    第一次搞两个远程,安全第一啊,两处有备份
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1821 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 16:32 · PVG 00:32 · LAX 08:32 · JFK 11:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.