I have files that I want to add to a new repository on BitBucket. How can I do this using a command line from Ubuntu ?
An alternative would be to create the repository
You do not need to do a clone anyway. And also the accepted answer is not correct. You need to do a git add .
and then git commit
before pushing.
This is the complete set of steps to follow, to do what you want: Create a git BitBucket/ Github repository from already locally existing project - samranga.blogspot.com