0

I have a remote branch named as qa(old_ui). I don't have it locally. I used the command

git push origin --delete qa(old_ui)

but no luck. I think that is because of the brackets.

The error is "The term 'old_ui' is not recognized as the name of a cmdlet, function, script file, or operable program.

by the way, I want to use pure git commands to accomplish this.

Joachim Sauer
  • 302,674
  • 57
  • 556
  • 614
Hello
  • 796
  • 8
  • 30

1 Answers1

2

Thanks for the comments from everybody. It seems like the single quotes works in the correct directory.

git push origin --delete 'qa(old_ui)'

Hello
  • 796
  • 8
  • 30
  • Powershell is finicky about special characters. Another one that comes up from time to time in Git is that `@` is shorthand for `HEAD`, but in [powershell it must be escaped](https://stackoverflow.com/a/61490618/184546). – TTT Feb 20 '23 at 17:16