git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: What is so broken with pull

From
Andrei Rybak <rybak.a.v@gmail.com>
Date
Mar 13, 2020, 15:49 UTC
Message-ID
<4aed477e-dadb-8077-c648-2b11c893f0ee@gmail.com>
In-Reply-To
<CAH8yC8knZEmKyYc7TwmXRCd24nK9YgDo3EYfvH58QWP61ZHpwQ@mail.gmail.com>
Hello Jeffrey,
On 2020-03-13 16:26, Jeffrey Walton wrote:
Show 23 quoted lines
> $ git pull
> There is no tracking information for the current branch.
> Please specify which branch you want to merge with.
> See git-pull(1) for details.
>
>     git pull <remote> <branch>
>
> If you wish to set tracking information for this branch you can do so with:
>
>     git branch --set-upstream-to=<remote>/<branch> android
>
> $ git branch --set-upstream-to=https://github.com/noloader/openssl/android
> android
> error: the requested upstream branch
> 'https://github.com/noloader/openssl/android' does not exist
> hint:
> hint: If you are planning on basing your work on an upstream
> hint: branch that already exists at the remote, you may need to
> hint: run "git fetch" to retrieve it.
> hint:
> hint: If you are planning to push out a new local branch that
> hint: will track its remote counterpart, you may want to use
> hint: "git push -u" to set the upstream config as you push.

It seems you are trying to set the upstream branch to the branch 'android' of the Github repository https://github.com/noloader/openssl.  Option --set-upstream-to expects a remote branch, not a URL.  You could try:

    $ git branch --set-upstream-to=origin/android android

In the hint printed by git pull, <remote> referes to the name of the remote, not its URL.  You can check configuration of remote names and URLs in a repository using command "git remote -v".

Previous: Jeffrey Walton
Message 2 of 2 in “What is so broken with pull”
  1. Jeffrey WaltonMar 13, 2020
  2. Andrei RybakMar 13, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.