Skip to content

Instantly share code, notes, and snippets.

@joncode
Created April 25, 2012 07:06
Show Gist options
  • Save joncode/2487623 to your computer and use it in GitHub Desktop.
Save joncode/2487623 to your computer and use it in GitHub Desktop.
clone github in new laptop
simple version ...
go to folder that will house your root folder
git clone git@github.com:joncode/becker_sqlite.git
bundle install
rake db:migrate
rake db:seed
... this runs git init for you
... you could also clone from mac, but I am getting an error in my local mac OSX
how to get another branch to clone to your local repo ...
git branch branch_name # make a new branch to pull to
git checkout branch_name # go to that branch
git pull git@github.com:joncode/becker_sqlite.git branch_name
# pull from cloud into that branch on your local repo
# dont think branch_name for checkout (local) and branch_name for pull (cloud) need to be same
be prepared for things to break ...
you may need to sudo gem update before bundle install if rake db:migrate doesn't work
the gemfile ! - you may need to update and fix gems and dependencies -
the database ! - seed.rb file that will work and get you to the right data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment