How do I set up a git repository?
Great to see that LP now supports git. So much so that we'd like to port our codebase over to git from bzr. Unfortunately, I'm a little confused on how to do it, as the instructions at https:/
I have a bzr repo which lives in a place something like this: lp:~<team>/
I wish to convert the repo to git, so as specified in the 'Converting from bzr to git' section, I did the following:
$ cp -r trunk/ master
$ cd master
$ git init .
$ bzr fast-export
$ bzr fast-export --export-
$ git add .
$ git ci -m "conversion to git"
$ rm -rf .bzr
And it's at this point that I'm not sure how to proceed.
I've already added the following to my ~/.gitconfig:
[url "git+ssh://<email address hidden>/"]
insteadof = lp:
[url "git+ssh://<email address hidden>
insteadof = lpme:
So how do I get the new git repo onto Launchpad?
Do I push back to the same repo?
$ git push --set-upstream lp:~<team>/
Trying this gives me "fatal: remote error: '~<team>
Was I supposed to push to a new subfolder?
$ git push --set-upstream lp:~<team>/
I get the same "fatal: remote error: '~<team>
Or am I supposed to set up a new repository for the git code? But attmepting to do so presents no option for specifying the new repo as a git repo. Besides, this isn't what I want to do - I want to convert the existing repo over to git.
I've also tried with a test repo but got "fatal: remote error: Project '+junk' does not exist."
Please advise.
Thanks
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Darren Hoyland
- Solved:
- Last query:
- Last reply: