GIT does not push

Asked

Viewed 183 times

3

Guys, I don’t know what’s going on with my git, I’ve uninstalled and installed and nothing! Every time I push a push occurs the following...

$ 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

1 answer

6


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

Try putting simple quotes (') around the branch name:

git push origin '#CASA'
  • It worked out! you’re the guy @Rodrigorigotti

Browser other questions tagged

You are not signed in. Login or sign up in order to post.