Other Pages

Clone A Repo

Clone a Repo Contining HTML & CSS

To review these concepts we will be using Javascript to manipulate a deck of cards that will later be used to make a game. The HTML and CSS files have been provided for you and can be copied to your local computer by cloning a repository from the Railsbridge GitHub account. If you have a graphical user interface client for git that you like and know how to use you can use that; otherwise you can use the console. If the wifi is out, or you have other problems, the instructor can probably supply the files on a USB stick for you to copy. Remember to ask a TA if you get stuck or need help.

Install Git

If you have git installed already, great! If not, you can follow the instructions for installing git from the Railsbridge Installfest for Rails, then return to this page.

Configure Git

Follow the instructions for configuring git from the Railsbridge Rails workshop and then return to this page.

Clone the Repo / Copy the Files

Create a directory that you want to save your Railsbridge files in (if you haven't done so before). If you're using the console type: $mkdir railsbridge then, to change to that directory $cd railsbridge .

  • To clone the repo from the Railsbridge repository type: $git clone http://whatever-i'll-look-this-up-later note: I don't think these files are in the repo yet, so the correct URL can't be inserted yet - this will save the files from Github to your computer.
  • If you have issues installing git: to download the files as a .zip archive, navigate in your browser to the page containing them on the GitHub site, and click on Download ZIP button and save to your railsbridge directory.
  • If you are getting the files from a USB drive, transfer them to your railsbridge directory.

If you got the files as a .zip archive, extract them to a directory using your usual methods.
Look at a file listing in your directory to verify the files are there.

Now you should be ready to start writing javascript to manipulate the elements on the HTML page (the next step).

more info on git (extra stuff you can read later if you want)

Git is not just used for transferring files, it's one of a variety of version control systems that let you backup your files and share them with others in group development. Railsbridge has its files on GitHub, a public Git hosting site.

There are videos and written documentation on using git at http://git-scm.com/documentation. For more information from Railsbridge on using git see: Railsbridge Guide on How to Git.

Next Step: