pushing a new project directory to bitbucket repository code example
Example 1: add local project to bitbucket
git remote add origin https://[email protected]/ommunedevelopers/repository-name.git
Example 2: commit new project folder to bitbucket
#Make sure to be in your project folder on your local machine and initialize your new repo
git init
#Add the existing files.
git add .
# Create your first commit.
git commit -m "First commit"
# Link it to the repo you created on GitHub/Bitbucket.
git remote add origin REPO_URL
#You can verify that it has been set correctly by doing the following.
git remote -v
#Finally push changes to repo
git push -u origin master