# What is so broken with pull

2 messages from 2020-03-13 to 2020-03-13. Participants: Jeffrey Walton, Andrei Rybak.
Thread: https://gitlist.dev/t/52989

## Jeffrey Walton, 2020-03-13 15:26

Subject: What is so broken with pull
Message-ID: <CAH8yC8knZEmKyYc7TwmXRCd24nK9YgDo3EYfvH58QWP61ZHpwQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAH8yC8knZEmKyYc7TwmXRCd24nK9YgDo3EYfvH58QWP61ZHpwQ%40mail.gmail.com

```
'git pull' used to work for me. Then I tried to sync my branch with
upstream/master according to
https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/syncing-a-fork.

Now this is the shit I am dealing with:

$ 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.


What is so broken with these workflows? Wht can't Git perform a simple
god damn sync? Where the hell did the information go? How did Got
manage to lose it?

```

## Andrei Rybak, 2020-03-13 15:49

Subject: Re: What is so broken with pull
Message-ID: <4aed477e-dadb-8077-c648-2b11c893f0ee@gmail.com>
URL: https://gitlist.dev/e/4aed477e-dadb-8077-c648-2b11c893f0ee%40gmail.com
In-Reply-To: <CAH8yC8knZEmKyYc7TwmXRCd24nK9YgDo3EYfvH58QWP61ZHpwQ@mail.gmail.com>

```
Hello Jeffrey,

On 2020-03-13 16:26, Jeffrey Walton wrote:
> $ 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".

```
