简体   繁体   中英

Switching to branches in github

I was working in Chale(Kamalka) branch. when git-push, it said to first set upstream to Chale(Kamalka) but when I typed code with this branch name. It gives error

bash: syntax error near unexpected token `(' 

So I checkout to master branch. And now I can't go back to Chale(Kamalka)

$ git checkout Chale(Kamalka)
bash: syntax error near unexpected token `(' 

What should I do? please help me. I want that code, I typed whole day back. I commit the code in Chale(Kamalka). Please help me, I am afraid.

You have to escape special characters with "\". In this case to checkout to Chale(Kamalka) branch try

$ git checkout Chale\(Kamalka\)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM