Question: I am using git bash.

I created a branch, did some changes and committed. When I tried to push, it gives me:

> 
> error "refpath does not exist".
> 
> 
> 

I then checkout to other branch and retried to checkout to my branch but it says

> 
> error: pathspec 'tabViewComponent' did not match any file(s) known to
>  git.
> 
> 
> 

I did `git branch`, and it gives me branch name like this:

[![enter image description here](https://i.stack.imgur.com/7AKrE.png)](https://i.stack.imgur.com/7AKrE.png)

Answer: 
I'd suggest you to checkout to that branch and rename it, before pushing it, to do so:
*with the numeric pad*

```
git checkout ALT+96tabViewComponent
git branch -m ALT+96tabViewComponent:tabViewComponent

```

On **ALT+96** don't forget the plus sign, if you got " **`** " as the output, you forgot the plus sign (The Unicode character should be *invisible*)

*Edit:* **ALT+96** means `START OF GUARDED AREA` and is a control character, you can also get the same character with **Alt 0150**

If you are a java person:

```
System.out.println("->\u0096<-");

```

And just copy the deadspace between the arrows of your output

[Reference](http://www.fileformat.info/info/unicode/char/96/index.htm)
Taking reference from <https://www.htmlsymbols.xyz/unicode/U+0096>, I see the name of the branch contains `–` at its start. can you try `git checkout –tabViewComponent`. Not sure if it a valid branch name.