Has anyone taken a local repo and imported it into Bitbucket? When I go to do this, the Import page asks for a URL, but I'm working on a local computer that does not have port 8000
open to the outside world.
Can I just use some special form of a file path?
Bitbucket is a code hosting and collaboration service launched in 2008. Bitbucket launched as a standalone company offering Mercurial hosting exclusively.
The main difference between Git and Bitbucket is that Git is a distributed version control system while Bitbucket is a web-based version control repository hosting service for development projects that use Git or Mercurial.
First you need to create a repository in Bitbucket, go to Repositories -> create repository
. Then you can choose between HTTPS or SSH.
You can customize your hgrc file like this:
[ui] username = Your Name <[email protected]> [paths] myproject = https://.. # The one provided by Bitbucket
Now you can just push
your changes to the repository:
$ hg commit -m "my changes" $ hg push myproject
Or pull
changes:
$ hg pull -u myproject
The -u
option will also update your local repository after pulling the changes. You can use this option instead of pulling and then updating your local repository. The -u
option is the same as doing:
$ hg pull myproject $ hg update
You may also want to take a look to the hgignore file.
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