When I first created my new repository at bitbucket I used the option of importing source from github (Import existing code). However that git repo has now updated and I would like to pull those changes and update my repo at bitbucket too. How can I do that?
You need to:
add a remote referencing your GitHub repo
git remote add github /url/of/github/repo
pull from that github repo
git pull github master
push back to bitbucket
git push -u origin master
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With