Sadly I am on a windows PC but I have just been so pleasantly surprised as to how easy it was.
This is what I had to do:
- I work from a cygwin command shell. In this I had to have ssh & git executables installed.
- help to set up the ssh key is here .
- I did not realise that git acts as a local repository as well as a public repository so you are under no obligation to upload your work. The local set up is a breeze and is described in this excellent tutorial, running the commands from my cygwin shell.
- There is even a GUI with the command 'gitk'
- create the repository on the remote server such as the public github repository
- Once you want to upload the code to a public github repository it is a simple case of running the following commands:
- And you can download code from github using the following:
- As I am on a windows PC I had to tweak the SSH2 key location. In eclipse go to Preferences/Network Conections/SSH2. Here I set the SSH2 home to where my cygwin .ssh directory is. In my case C:\cygwin\home\comerb\.ssh.
cd existing_git_repo
git remote add origin git@github.com:bill-comer/hubbub.git
git push origin master
git clone git@github.com:bill-comer/hubbub.git
Now go ahead and enjoy a free and easy to use code repository.
1 comment:
the tutorial has disappeared. but there are lots of free docs. Here is one - http://progit.org/book/
Post a Comment