-
Create your own Github account if you have not already. Once you have an account, fork the repository into your own account by clicking on the Fork button at the top left corner of the screen.
-
In your very own forked version of the repository, copy the git URL. It’s the one that looks like
[email protected]:[your_username_here]/rubyclass_blog.git
-
On your development machine, open terminal and cd into your project directory. Once there, clone your repository:
git clone [email protected]:[your_username_here]/rubyclass_blog.git
-
Install the required gems locally:
bundle install
-
Run the database migrations:
rake db:migrate
-
Start your local Rails server:
rails server
-
Fire up your browser and go to
http://localhost:3000/
The goal is to get used to the daily GIT workflow. To do this, you will want to make changes to your application and then commit and push them to your Github repository.
Make changes that are of interest to you. If you have strong design aesthetic, work with the stylesheets to make it pretty. If you are interested in adding more fields to your application you can do that too.
The basic idea is to make changes, add, commit and repeat. When you are done with your changes, you will want to push them up to your Github repository.
-
Make a change to a file somewhere.
-
Check the status of your local repository
git status
-
Inspect the differences in your local repository
git diff
-
Add the file that you made changes to
git add [your_filename.rb]
-
Commit the changes and be sure to include a commit message
git commit -m "I made it better!"
-
Push your changes to your github repository
git push origin master
-
Pull changes from your github repository (just for practice)
git pull origin master