Anyways...
Today I was trying to upload my git repository to GoogleCode to take advantage of the free bug tracker. However, I came across a little bit of trouble during this migration and so I wanted to share my little problem/solution so that others don't need to waste too much time trying to figure out what went wrong.
I was following the instructions found on this page:
http://www.servercobra.com/migrate-git-project-from-github-to-google-code/
and for the most part, it worked out very well.
A little more context
I have a project called MageComet that is already setup and versioning on Github. I want to push my local github repository into googlecode.
Steps
1) Make sure the google code repository is using git.
2) If you took a look at the previous tutorial at the link above, the author guides you through creating a '.netrc' file. You can give it a try and create this file, but in my experience, my machine did not use it, and thus, there were errors.
In my repository, I executed the following code:
git remote add google https://code.google.com/p/magecomet/
git push google --all
BUT, I received this error message:
error: The requested URL returned error: 403 while accessing https://code.google.com/p/magecomet//info/refs
If the previous steps worked for you, I don't think you need to continue reading... but if you still have problems go on to step 3!
3) I like having clean config files so I removed the previous remote repository and added the correct one.
git remote rm google
git remote add google https://USER@code.google.com/p/magecomet/
4) Now if you execute the following code, you should be promoted for a password:
git remote add google https://code.google.com/p/magecomet/
git push google --all
This password is NOT your google password, but rather the password found at this link (provided that you are logged in)
https://code.google.com/hosting/settings
5) If you enter the password, all should be go well and your repository should be pushed onto GoogleCode.
Hope that helped.
*****************
EDIT
I figured out why the .netrc file wasn't working.
This file is supposed to be a space delimited file... I had an extra colon in it for some odd reason...
The file should look like this
machine code.google.com login USER@gmail.com password PASSWORD
EDIT
Guess I posted too early, Still doesn't work so I am just going to manually put in my password...
Guess I posted too early, Still doesn't work so I am just going to manually put in my password...
No comments:
Post a Comment