emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scratch/igc renamed ad feature/igc [was: scratch/igc as a feature br


From: Eli Zaretskii
Subject: Re: scratch/igc renamed ad feature/igc [was: scratch/igc as a feature branch]
Date: Fri, 17 Jan 2025 14:52:32 +0200

> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Fri, 17 Jan 2025 04:58:10 -0500
> Cc: emacs-devel@gnu.org, pipcet@protonmail.com, gerd.moellmann@gmail.com, 
>       yandros@gmail.com, ofv@wanadoo.es
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> git checkout scratch/igc
> >> git branch --set-upstream-to=feature/igc
> >> git branch -m feature/igc
> >
> > This doesn't work:
> 
> This worked for me:
> 
> git fetch
> git checkout scratch/igc
> git branch --set-upstream-to=origin/feature/igc
> git branch -m feature/igc

I tried "git fetch" after getting the error, and it didn't help.
Here's the transcript:

  $ git fetch

  $ git branch --set-upstream-to=feature/igc
  error: the requested upstream branch 'feature/igc' 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.

  $ git checkout scratch/igc
  Already on 'scratch/igc'
  Your branch is up-to-date with 'origin/scratch/igc'.

  $ git branch --set-upstream-to=feature/igc
  error: the requested upstream branch 'feature/igc' 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]