V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
sensui7
V2EX  ›  问与答

git 是不是克我, 服了

  •  
  •   sensui7 · Jun 18, 2016 · 2952 views
    This topic created in 3603 days ago, the information mentioned may be changed or developed.
    git branch
    * 'front-end-controller'
    'master'
    'plain_way'

    显示我有 master, 但是切换不过去,
    {lamb} git checkout master
    error: pathspec 'master' did not match any file(s) known to git.

    {lamb} git branch -d master
    error: branch 'master' not found.

    {lamb} git branch --set-upstream-to=origin/master 'front-end-controller'
    error: the requested upstream branch 'origin/master' does not exist


    通过网页查看, 我也有 master 分支, 我真服了
    sensui7
        1
    sensui7  
    OP
       Jun 18, 2016
    {lamb} git pull origin master
    Password for 'https://[email protected]':
    fatal: Couldn't find remote ref master
    Unexpected end of command stream
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   846 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 20:05 · PVG 04:05 · LAX 13:05 · JFK 16:05
    ♥ Do have faith in what you're doing.