1

プロジェクトの Google コードに Web ディレクトリをアップロードしたいと考えています。

ディレクトリをGoogleコードにアップロードするために使用する端末コマンドは何ですか?

4

1 に答える 1

2

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)

于 2012-05-07T06:52:40.517 に答える