Skip to content

Command failed: git branch --force development --track origin/development #193

@lensbart

Description

@lensbart

Hello!

First of all, thanks for making this.

A few days ago, I had everything set up fine and my GitHub Action was succesfully linting pull requests on master using Prettier, ESLint and Stylelint. However, in the mean time I did something that makes this lint action fail on every run:

Command failed: git branch --force development --track origin/development
error: the requested upstream branch 'origin/development' 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.

The steps I took that I think might have caused this problem:

  • Delete origin/development (I know, bad idea — I wanted to remove a certain commit)
  • Reset the local branch to a previous commit and discard the local changes
  • Push development to the remote

After some further testing, it seems that I cannot reuse the name development for any newly created branch (and then run a PR against master).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions