I have a local git repo created by Qt Creator during the New Project Wizard. I’ve made many commits there. I have created a new Google Code project only now. What is the best way to sync the remote repo to my local one?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can see an example at this article “Setting up Google Code with Git” from AlBlue’s Blog:
See
git remotecommand: 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~/.netrcfile as described in the article, or your%HOME%\_netrcfile for windows: see “Git – How to use.netrcfile on windows to save user and password” for more).Once you have done a local commit, you can push the
masterbranch (see “Push origin master error on new repository“), and from there justgit 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.