GIT push related issue

As we know, when we login to bitbucket it asks for Atlassian registerd email address to be used for login to bitbucket. 

let say I am having email address : vverma@xyz.com

and password : vinayverma

know If I try to push my changes to bitbucket using following command : 

"git push https://vverma@xyz.com:vinayverma@bitbucket.org/repository.git --all"

 

It is not allowing me to push my changes and throws error : 

Could not resolve host: xyz.com:vinayverma@bitbucket.org

 

I tried passing the username and password into variables and used them, still I am getting the same error msg. Could somebody please help me to get the solution, How to push my changes to a GIT repo using command.

1 answer

1 accepted

1 vote

Can you try

"git push https://vverma%40xyz.com:vinayverma@bitbucket.org/repository.git --all"

The '@' in the URL marks the end of the credentials and the start of the hostname, so the '@' in the username needs to be URL-encoded.

That isn't the username for pushes or pulls. Go to https://bitbucket.org/account (while logged in) and it'll list the username you should use.

Thanks! The solution worked :-)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

26,152 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you