Jump to content
Flavio Nash

ANSWERED Commit para repositório pro bitbucket

Recommended Posts

Flavio Nash

Olá pessoal uso o Ubuntu estou tentando versionar um projeto então criei o projeto local e criei um repositório no bitbucket, mas quando fui dar um push ele deu um erro de permissão que nunca tive no windows, gostaria da ajuda de vocês. Segue o erro do terminal.

flavio@flavio-nash:/var/www/html/zf2$ git init
Initialized empty Git repository in /var/www/html/zf2/.git/
flavio@flavio-nash:/var/www/html/zf2$ git remote add origin git@bitbucket.org:flavioalves/zf2.git
flavio@flavio-nash:/var/www/html/zf2$ echo "Flavio Alves" >> contributors.txt
flavio@flavio-nash:/var/www/html/zf2$ git add contributors.txt
flavio@flavio-nash:/var/www/html/zf2$ git commit -m 'Initial commit with contributors'
[master (root-commit) ffe4f95] Initial commit with contributors
1 file changed, 1 insertion(+)
create mode 100644 contributors.txt
flavio@flavio-nash:/var/www/html/zf2$ git push -u origin master
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

att,

Share this post


Link to post
Share on other sites
Flavio Nash

Galera consegui resolver o problema criando uma chave ssh e adicionando ela ao bitbucket e github, depois então consegui comitar, atualizar e fazer tudo nos meus repositórios.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.