V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
mfanming
V2EX  ›  git

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

  •  1
     
  •   mfanming · Jun 8, 2016 · 3601 views
    This topic created in 3617 days ago, the information mentioned may be changed or developed.
    mfanming
        1
    mfanming  
    OP
       Jun 8, 2016
    以下错误提示,看不懂...

    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
       Jun 8, 2016
    配置文件( 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
       Jun 8, 2016
    之前为百度效率云建立一个远程的时候,成功了。
    第一次搞两个远程,安全第一啊,两处有备份
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2501 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 15:12 · PVG 23:12 · LAX 08:12 · JFK 11:12
    ♥ Do have faith in what you're doing.