How do I login to a repository?

Asked

Viewed 137 times

1

I needed to change the password in the bitbucket, so the push and the pull from my local repository no longer work. I authenticated myself via https.

What command to use to authenticate me in the repository and enter username and password?

  • No, the title doesn’t say it all. Which connection URL is used? You pass your user or use a Umbrella which then identifies with the ssh key? The repository is as http or https? What is the error message? Are you sure it is not a problem with head be outdated? Verified that you have access to read and write from such repository?

  • The point here is that the password has been changed and now I can’t pull or push. However I don’t know how to login again.

  • Authentication is ssh or http or https? Still not reporting

  • The authentication is Https

  • @Jeffersonquesado thanks for the edition.

  • The information about your remote is in the git configuration file (.git/config). I do not recommend editing directly, but can give you a guide. I found this here that seems to be relevant: https://stackoverflow.com/q/5343068/4438007. However, I strongly recommend switching authentication https in favour of ssh, but I recognize that it is more my mania than something objective. To change to ssh, first it is appropriate to raise your public key to the bitbucket. If you use Windows, recommend not to use the putty, but rather the openssh (integration with the putty is not smooth, already openssh is)

  • You may also be relevant: https://stackoverflow.com/q/35942754/4438007

  • any errors are shown? vc is using git or Hg?

Show 3 more comments

1 answer

1


If you used to https with its repository without providing the user and password to each pull/push, probably your credentials (user and password) were saved using the credential.helper of Git itself.

To change them, you have to call the commands:

git config credential.helper store
git pull

After this, Git will ask you which user and password. Provide user and new password and retest the access test in your repository.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.