Issue with git pushing and entering password
I just set up an account on bitbucket and tried to import my repository for the first time.
I am typing this command:
git push -u origin - all
I will then be prompted for a password. When I click a new line is entered and nothing happens. I can also see my password on the screen. For example, if my password was "mypassword" it will look like this, as soon as I run the command, hit enter, type in the password and hit enter:
Thanks in advance!
source to share
If you are trying to get code from an existing bitbucket repository, you need to run this command:
git clone https://<your-user-name>@bitbucket.org/<your-user-name>/<project-name>.git
But if you are trying to push code to your bitbucket a / c from your local git repository, please contact us for more help: Import code from existing project
See the section that says: Import existing project without conversion to empty repository .
source to share
If you, like me, are having trouble using ssh authentication on bitbucket; this is how i fixed it. Bitbucket wants it to have a separate ssh key for each individual user from what I can gather from the documentation.
Use your default method to create a new ssh key specifically for bitbucket (we'll call the ssh key 'id_pub_my_user_name.pub') and put something like this in ~ / .ssh / config:
# bitbucket user - my_user_name
Host bitbucket.org
HostName bitbucket.org
User my_user_name
IdentityFile ~/.ssh/id_rsa_my_user_name
If you're typing in terminal now:
ssh -T git@bitbucket.org
It will now show you the authentication and you can happily continue from there.
source to share