GitHub

I promised to show you how to upload your code so that you can share it with others. I recommend using GitHub.

  1. Go to https://github.com/plans and sign up for a free account.

  2. On your Debian VM, follow the instructions at http://help.github.com/linux-set-up-git/, starting with “Next: Set Up SSH Keys.”

  3. Once your SSH key works, go here to create a new repository: https://github.com/repositories/new

  4. Now, back on your Debian VM, we have to add github as a ‘remote’, so we can push to it. Replace USERNAME with your github user name, and REPONAME with the name of the repository you chose.

    liucs:~$ cd cs164/bookswap
    liucs:~/cs164/bookswap$ git remote add hub git@github.com:USERNAME/REPONAME.git
    liucs:~/cs164/bookswap$ git push hub master
  5. As you continue to make changes to your project, you can just commit as usual, and then repeat that command

    liucs:~/cs164/bookswap$ git push hub master

    to upload to github.

  6. You may also continue to push to my server, using the regular git push. I expect those repositories to be available for at least another couple of months, but you shouldn’t rely on them indefinitely.

Happy hacking!

 

©2012 Christopher League · some rights reserved · CC by-sa