First I tried to sync my local repo with online bitbucket but I don't know that should i add git clone before URL as well or I just have to add URL( git remote add origin <URL>) or
( git remote add origin git clone <URL>)
Second when i tried to pushed the content of my local repository to online git repository its showing errors with some hints like:
git pull before pushing again
see the note about fast forward
Sorry for the delayed answer.
If it is a new repository without any content these steps should help:
Perform these steps inside the project directory
git init git add --all git commit -m "Message about your commit"
git remote add origin <the URL for your Bitbucket repository>.For e.g. firstname.lastname@example.org:example_workspace/example_repo_name.git
git push -u origin master
In case of an existing Bitbucket Cloud repository these tutorials will answer your questions:
Hey everyone, over the past year, we've added several new features to how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your tea...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event