Can I import a local (no url address) git project into bitbucket?
Hi Xavier,
I assume this means you're running a git server on your local machine and want to move that repository to Bitbucket?
If so, you cannot use Bitbucket's UI based import function (unless you're also running Bitbucket on the same machine, but I'm assuming this is not the case).
But if you run the below commands on the machine running the git repo you want to move, the clone will give you a full history of the code (code, branches, tags) and the push command will then commit everything to your new target repository. These commands will NOT include meta data such as Pull Requests.
git clone --verbose --bare https:
//olduser@localhost/scm/OLDPROJECTNAME/oldreponame.git
git push --mirror https:
//newuser@newgitserver/scm/NEWPROJECTNAME/newreponame.git
CCM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.