The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

GIT push related issue

Vinay Verma
January 9, 2018

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Michael Heemskerk
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 9, 2018

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.

jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 9, 2018

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.

Vinay Verma
January 10, 2018

Thanks! The solution worked :-)

TAGS
AUG Leaders

Atlassian Community Events