* What is so broken with pull
@ 2020-03-13 15:26 Jeffrey Walton
2020-03-13 15:49 ` Andrei Rybak
0 siblings, 1 reply; 2+ messages in thread
From: Jeffrey Walton @ 2020-03-13 15:26 UTC (permalink / raw)
To: Git List
'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?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: What is so broken with pull
2020-03-13 15:26 What is so broken with pull Jeffrey Walton
@ 2020-03-13 15:49 ` Andrei Rybak
0 siblings, 0 replies; 2+ messages in thread
From: Andrei Rybak @ 2020-03-13 15:49 UTC (permalink / raw)
To: noloader; +Cc: Git List
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".
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-13 15:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-13 15:26 What is so broken with pull Jeffrey Walton
2020-03-13 15:49 ` Andrei Rybak
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).