I have a local directory on my Windows machine that I am trying to:
- initialize using
git init - add a
README.mdfile to this repository - sync this
README.mdfile to bitbucket
However I am having trouble with the commands (steps 2. and 3.) that come after git init
I have tried this:
git init --bare tHartman3
git remote rm origin
git add -A
git remote add origin https://bitbucket.org/<username>/tHartman3
Now, I am ready to commit so I try:
git commit -m "Created blank README.md file for tHartman3 repository"
but it gives the following error
On branch master
nothing to commit, working tree clean
Then I try
git push -u origin master
But this gives this error
remote: Not Found
fatal: repository 'https://bitbucket.org/<username>/tHartman3/' not found
When I just try
git push
I get this error
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin master
I am not sure what is going on with this since:
git remote add origin https...seemed to have worked.git remote -vlooks good
I have followed instructions from here and here.
Additional Notes:
- If I use
git remote add origin https://bitbucket.org/<username>/tHartman3orgit remote add origin https://bitbucket.org/<username>/tHartman3.gitI still get the same output for all other following commands.
Question
Is there something missing from here to create this local tHartman3 directory to a .git repository?