GIT does not push

3

I do not know what happens with my git, I've uninstalled and installed it and nothing! every time I make a push the following occurs ...

$ git clone https://[...]/projeto.git
$ git checkout -b "#CASA"
$ git add <meus_arquivos>
$ git commit -m "Descrição"
$ git push origin #CASA
fatal: The current branch #CASA has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin #CASA
    
asked by anonymous 19.11.2015 / 19:05

1 answer

5

The problem is that the name of your remote branch has a hash ( # ) at the beginning. In the terminal, this is interpreted as a comment.

Try to put single quotes ( ' ) around the branch name:

git push origin '#CASA'
    
19.11.2015 / 19:18