xxxxxxxxxx
//cd into your dir that have your code
//initiate it as a git repo
git init
git add --all
git commit -m "Initial Commit"
//copy the url for your EMPTY repo in bitbucket
//set the remote url for your repo and push your initial commit
git remote add origin https://<Bitbucket_Username>:<App_Password>@bitbucket.org/<Repo_Name>.git
git push -u origin master
xxxxxxxxxx
git remote add origin <the URL for your Bitbucket repository>
git push -u origin master
git init
git add --all
git commit -m "Initial Commit"
xxxxxxxxxx
git remote add origin https://your-username@bitbucket.org/ommunedevelopers/repository-name.git
xxxxxxxxxx
cd $HOME/Code/repo-directory
# Rename Origin to bitbucket
git remote rename origin bitbucket
# Add the origin of your new github repository
git remote add origin https://github.com/<username>/<repo-name>.git
# Push ypur branch master to your github repo
git push origin master
# Remove the old origin
git remote rm bitbucket