I'm testing out Git and Bitbucket.
I've created a repository on Bitbucket and have created a local copy of the repository and I am committing files into it. I can't seem to push the files from my local repository to the remote repository.
Here's what I'm doing:
git clone https://[email protected]/me/test.git
cd test
touch dummy
git add dummy
git commit dummy -m "my first git commit"
git push
The final line outputs:
Everything up-to-date
And when I log on to Bitbucket I can’t see my dummy file.
What am I doing wrong?
Doing this worked:
git push origin master:master
What is the explanation as to the difference between this and a simple git push
?