1. In your setup page : https://code.google.com/hosting/settings
- get your password
- Check your user preference like below, and save it:
Security
- change to the directory to where your code exist
- initial git environment, run following command
- git init
- git add
- git commit -a -m "Initial commit"
- create window environment data to have right to push code
- create an environment variable %HOME%, and set it to your project path
- create a file, named _netrc, and add contain below
machine code.google.com
login your_account@gmail.com
password your_password_get_from_step_1 - commit/push your code to your remote google code project repository
- git remote add origin https://code.google.com/p/your_project_name/
- git push origin --all
沒有留言:
張貼留言