Git provides basic version control for your code. It also enables you to easily collaborate on shared code with other people.
# Initialize a new local git repository
git init
# stage all files
git add .
# stage specific files
git add index.html jedi_cat.png
# commits all staged files
git commit -m 'Initial Commit'
- Try Git on Codeschool
- Git website - Documentation is really helpful and thorough.
- Sourcetree - My favorite git GUI for mac and windows.
Used to define the content and structure of any and all websites.
# Assuming you have ruby >= 2.2.2 installed on your system
gem install rails --no-ri --no-rdoc
# Create new application
# For simplicity sake, we are skipping some defaults
rails new library --skip-spring --skip-turbolinks --skip-action-cable
cd library
rails s # to run server
ctrl-c # to stop server
git init
git add .
git commit -m "Initial Commit"
rails g scaffold Game title rating:integer image_url
rails db:migrate
rails s
# visit http://localhost:3000/games