github - git rebase fatal: Needed a single revision -


i have branch of public repository , trying update branch current commits original repository:

$ git fetch <remote> remote: counting objects: 24, done. remote: compressing objects: 100% (20/20), done. remote: total 20 (delta 12), reused 0 (delta 0) unpacking objects: 100% (20/20), done. git://github.com/path_to/repo   9b70165..22127d0  master     -> $/master $ git rebase <remote> fatal: needed single revision invalid upstream <remote> 

the <remote> in place of remote name , not remote name. documentation on error seems bit loose.

you need provide name of branch (or other commit identifier), not name of remote git rebase.

e.g.:

git rebase origin/master 

not:

git rebase origin 

note, although origin should resolve the ref origin/head when used argument commit reference required, seems not every repository gains such reference may not (and in case doesn't) work. pays explicit.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -