In this course, we will be using Git to manage, complete, and submit all assignments. This repository is meant to serve as a quick exercise in forking a repository and pushing updates to your forked repository. This assumes you have git installed and setup.
Assuming you have a browser open at https://github.com/rails-decal/fork-me, in the top right corner of the screen, click the "Fork" button to copy this repository onto your Github account.
Clone this forked repository onto your local machine. We suggest creating a folder railsdecal
to store your assignments and projects for this class.
Copy the Git URL and then in terminal,
cd railsdecal
and use git clone
to clone the repo into the directory.
The full clone command should look like:
git clone https://github.com/YOURGITHUBUSERNAME/fork-me.git
Let's add something to our repository! Go ahead and make whatever changes you want.
Here's an example. In terminal,
cd fork-me
echo hello world >> hello.txt
Let's make sure to stage (add) these changes so Github knows to track our new files and changes.
git add .
Commit (snapshot) these changes so you can push them up to Github.
git commit -m "I love the rails decal! *_*"
Finally, push these changes up to Github!
git push origin master