Answers for "how to create a repository in bitbucket and get a access and push code"

3

how to push code on bitbucket

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"
Posted by: Guest on September-04-2021
0

repo from bitbucket to github

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
Posted by: Guest on April-14-2020

Code answers related to "how to create a repository in bitbucket and get a access and push code"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language