M Usman Nadeem
M Usman Nadeem

Reputation: 415

Multiple Bitbucket accounts on same machine

I need to implement multiple bitbucket accounts on same machine.

I set user name and email locally but did not work

git: 'credential-[here show global user]' is not a git command. See 'git --help'. remote: Unauthorized fatal: Authentication failed for 'https://[email protected]/xyz/xyz.git/'

Upvotes: 1

Views: 679

Answers (1)

M Usman Nadeem
M Usman Nadeem

Reputation: 415

I resolve this issue by setting my remote url with my password here you can check

git remote -v
origin  https://[email protected]/REPOSITORY.git (fetch)
origin  https://[email protected]/REPOSITORY.git (push)

now set your remote url like this

git remote set-url origin USERNAME:[email protected]/REPOSITORY.git

that it now on every command git never ask you about password

Upvotes: 2

Related Questions