This is an inclass practice project for Git and Github.
Steps:
Command line:
echo '2.1.5' > .ruby-version
echo 'this_folder' > .ruby-gemset
cd .
mine .
RubyMine
Create Gemfile with:
source 'https://rubygems.org'
gem 'guard-rubocop'Command line:
bundle install
guard init rubocop
guard
RubyMine
Create .rubocop.yml with:
AllCops:
Exclude:
- 'Guardfile'
StringLiterals:
Enabled: falseCommand line:
git init
git status
git add .rubocop.yml .ruby-version .ruby-gemset Gemfile Gemfile.lock Guardfile Readme.md
git commit -m 'Initial Commit'
git log
Browser:
Create a new repository at https://github.com/new
Copy the "existing repository" link with SSH clicked
Command line:
Paste into command line and press return
For future pushes:
git push