Push in Bitbucket

Asked

Viewed 280 times

1

I can’t seem to get one push in my Bitbucket project, every time the message appears below. I follow the instructions by placing the email and name, but when I give the commands again the same message appears.

inserir a descrição da imagem aqui

I created a new directory, and use the following commands:

git init
git add README.md
git commit -m "first commit"
git remote add origin https:***********
git push -u origin master

I’m using the tool git, downloaded on this website.

  • I know it doesn’t answer your question, but it’s a tip. Have you already looked at Gitextensions? It’s very complete and has several options in the interface itself.

  • You need to create the SSH key, here is the tutorial on how to create and add to account https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html The repository address will be git://bitbucket.org/<usuario>/<repositorio>

  • There is already an open question in stackoverflow for your problem, with several answers. If you don’t want to create an SSH key, I suggest looking at this link: https://stackoverflow.com/questions/16433970/unable-to-auto-detect-email-address

  • 3

    The screen print says it all: git doesn’t know who you are, your name or email. Just run the two commands that are written

1 answer

5

It’s actually Git itself that’s blocking you, not Bitbucket, because you don’t have user and email properly configured, just do it:

git config --local user.name "Henrique Mendes"

Or whatever name you want, to set your name in Git for this repository (the "-local") and:

git config --local user.mail "[email protected]"

To your e-mail address. This information is used to record the authorship of commits.

Browser other questions tagged

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