'git push origin master, is showing nothings in the bitbucket repository

I'm trying to push my project for the first time in bitbucket, when I type git push origin master, as i choose master for my branch, it's shows nothing in the repository I have created in bitbucket.

the messages throws at me:

* [new branch]      master -> master

when I type git push origin master --force

the message:

 git push origin master --force
 Everything up-to-date


Solution 1:[1]

Try this

git init
git add .
git commit -m "Initial commit"
git remote add origin [email protected]:/path/to/my_project.git
git push origin master

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 coder_a