shriek
shriek

Reputation: 5843

How to sync with the original repository in bitbucket?

Although I have already checked the similar post about syncing my local files with the original repo I have this strange problem.

So, this is what I did:-

But the problem is that git is asking for the password of [email protected] which I do not have.

I don't understand what I'm doing wrong. I thought it was supposed to fetch and merge it into my current branch but it keeps asking the password for [email protected].

I even tried entering my own password which clearly failed.

Upvotes: 0

Views: 6325

Answers (1)

Tuxdude
Tuxdude

Reputation: 49593

git is asking for the password because the URL you used for the upstream:

https://[email protected]/masterrepo/master.git

is a HTTPS URL which requires authentication.

It is not quite clear from your question, but I'm guessing that masterrepo is a public repository (if not you could not have cloned it in the first place I assume). So try using a public URL which does not require authentication, while adding the upstream remote, one of these should work:

https://bitbucket.org/masterrepo/master.git
[email protected]:masterrepo/master.git

Upvotes: 3

Related Questions