Skip to content

Instantly share code, notes, and snippets.

@dubslow
Created February 13, 2015 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dubslow/dab61346cc06d6b9cf7b to your computer and use it in GitHub Desktop.
Save dubslow/dab61346cc06d6b9cf7b to your computer and use it in GitHub Desktop.
Git refusing to do upstream branches
bill@Gravemind⌚1630 ~/qtox/libs/libtoxcore-latest ∰∂ git checkout --track origin/new_api
fatal: Cannot update paths and switch to branch 'new_api' at the same time.
Did you intend to checkout 'origin/new_api' which can not be resolved as commit?
bill@Gravemind⌚1630 ~/qtox/libs/libtoxcore-latest ∰∂ git fetch origin
From https://github.com/irungentoo/toxcore
* branch master -> FETCH_HEAD
bill@Gravemind⌚1630 ~/qtox/libs/libtoxcore-latest ∰∂ man git fetch
bill@Gravemind⌚1631 ~/qtox/libs/libtoxcore-latest ∰∂ git remote -v
origin https://github.com/irungentoo/toxcore.git (fetch)
origin https://github.com/irungentoo/toxcore.git (push)
bill@Gravemind⌚1631 ~/qtox/libs/libtoxcore-latest ∰∂ git fetch origin
From https://github.com/irungentoo/toxcore
* branch master -> FETCH_HEAD
bill@Gravemind⌚1632 ~/qtox/libs/libtoxcore-latest ∰∂ git branch -avv
* master c086a66 Code Cleanups.
remotes/origin/HEAD -> origin/master
remotes/origin/master c086a66 Code Cleanups.
bill@Gravemind⌚1632 ~/qtox/libs/libtoxcore-latest ∰∂ git fetch origin new_api
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 5 (delta 2), reused 3 (delta 0)
Unpacking objects: 100% (5/5), done.
From https://github.com/irungentoo/toxcore
* branch new_api -> FETCH_HEAD
bill@Gravemind⌚1633 ~/qtox/libs/libtoxcore-latest ∰∂ git checkout --track origin/new_api
fatal: Cannot update paths and switch to branch 'new_api' at the same time.
Did you intend to checkout 'origin/new_api' which can not be resolved as commit?
bill@Gravemind⌚1633 ~/qtox/libs/libtoxcore-latest ∰∂ git getch origin
git: 'getch' is not a git command. See 'git --help'.
Did you mean this?
fetch
bill@Gravemind⌚1633 ~/qtox/libs/libtoxcore-latest ∰∂ git fetch origin
From https://github.com/irungentoo/toxcore
* branch master -> FETCH_HEAD
bill@Gravemind⌚1633 ~/qtox/libs/libtoxcore-latest ∰∂ git branch -avv
* master c086a66 Code Cleanups.
remotes/origin/HEAD -> origin/master
remotes/origin/master c086a66 Code Cleanups.
bill@Gravemind⌚1633 ~/qtox/libs/libtoxcore-latest ∰∂ less ~/.bash_aliases
bill@Gravemind⌚1633 ~/qtox/libs/libtoxcore-latest ∰∂ git fetch origin new_api:new_api
From https://github.com/irungentoo/toxcore
* [new branch] new_api -> new_api
bill@Gravemind⌚1634 ~/qtox/libs/libtoxcore-latest ∰∂ git branch
* master
new_api
bill@Gravemind⌚1634 ~/qtox/libs/libtoxcore-latest ∰∂ git branch -avv
* master c086a66 Code Cleanups.
new_api eac0d43 Started implementing new Tox api.
remotes/origin/HEAD -> origin/master
remotes/origin/master c086a66 Code Cleanups.
bill@Gravemind⌚1634 ~/qtox/libs/libtoxcore-latest ∰∂ git checkout new_api
Switched to branch 'new_api'
bill@Gravemind⌚1634 ~/qtox/libs/libtoxcore-latest ∰∂ git branch -u origin/new_api
error: the requested upstream branch 'origin/new_api' does not exist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment