I would like to upload my web directory to google code for a project.
What is the terminal command that I would use to upload my directory to google code?
I would like to upload my web directory to google code for a project.
What is the terminal command that I would use to upload my directory to google code?
Simply add your ggogle code repo as a remote to your current local Git repo:
git remote add googlecode https://code.google.com/p/myprojectname
git push googlecode master
git push googlecode --all
If google code is your only upstream repo, you can name that remote origin
instead of googlecode
.
Make sure you local config (git config
or in <your local repo>/.git/config
) contains:
["origin"]
fetch = +refs/heads/:refs/remotes/origin/
url = https://code.google.com/p/projectname/
(or ["googlecode"]
if you choose that remote name)
Make sure you created the ~/.netrc
(unix) or %HOME%/_netrc
(windows, meaning you need to define HOME
) file in your user home directory with following content:
machine code.google.com
login <login>
password <login>
And use the latest git version possible (like msysgit1.7.10 if you are on Windows)