I recently reinstalled windows and got the latest version of git. I created a new repo on Bitbucket and ran
git remote add origin https://[email protected]/MYUSERNAME/test.git
then I ran
git push -u origin --all
however this gave me the error
fatal: could not read Password for 'https://[email protected]': No such
file or directory
before I would just get a prompt asking me for my username and password, and the push worked fine. I've tried reverting to Git 1.7.11 but this didn't do anything.
The git push command is used to upload local repository content to a remote repository. Pushing is how you transfer commits from your local repository to a remote repo. It's the counterpart to git fetch , but whereas fetching imports commits to local branches, pushing exports commits to remote branches.
I solved this by adding my password in the url.
Instead of:
git remote add origin https://[email protected]/MYUSERNAME/test.git
I used:
git remote add origin https://MYUSERNAME:[email protected]/MYUSERNAME/test.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With