How to push local Git repo to newly created Google Code project?

笑着哭i 提交于 2019-12-03 06:22:52
VonC

You can see an example at this article "Setting up Google Code with Git" from AlBlue’s Blog:

$ cd /path/to/existing/local/repo
$ git remote add googlecode https://project.googlecode.com/git
$ git push googlecode master:master

See git remote command: if you have an existing remote (google code) repo ready, you can add its address to your local repo and start pushing (provided you did setup correctly your ~/.netrc file as described in the article, or your %HOME%\_netrc file for windows: see "Git - How to use .netrc file on windows to save user and password" for more).

Once you have done a local commit, you can push the master branch (see "Push origin master error on new repository"), and from there just git push googlecode.
If your remote is called 'origin', then after the first push, you will be able to just do 'git push' for the future pushes.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!