add remote for intellij
I use intellij to create a local git repo.
To add a new remote:
1. create a project in google code.
2. go to this link: https://code.google.com/hosting/settings. Copy the
git remote add googlecode https://code.google.com/p/xxxxxx/
this will add google code as your remote.
To verify the remote:
git remote -v
4. now you can go to intellij VSC->git-> push to push change to your remote. Or just use command line: git push googlecode HEAD
About git remote add and push .. master
- What is
git remote add ...As you probably know,
gitis a distributed version control system. Most operations are done locally. To communicate with the outside world,
gituses what are called
remotes. These are repositories other than the one on your local disk which you can
pushyour changes into (so that other people can see them) or
pullfrom (so that you can get others changes). The command
git remote add origin firstname.lastname@example.org:peter/first_app.gitcreates a new remote called
email@example.com:peter/first_app.git. Once you do this, in your push commands, you can push to
origininstead of typing out the whole URL.
- What is
git push origin masterThis is a command that says “push the commits in the local branch named
masterto the remote named
origin“. Once this is executed, all the stuff that you last synchronised with origin will be sent to the remote repository and other people will be able to see them there.