Skip to content

Instantly share code, notes, and snippets.

@Thomascountz
Last active April 21, 2023 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Thomascountz/75f2d02ae0da09932e429332850cc721 to your computer and use it in GitHub Desktop.
Save Thomascountz/75f2d02ae0da09932e429332850cc721 to your computer and use it in GitHub Desktop.
Creating a new Rails app using locally checked-out code.
# Fork rails/rails on Github
> git clone gem https://github.com/thomascountz/rails.git
Cloning into 'rails'...
> cd rails
# Checkout SHA prior to the merge commit and create a new branch
> git checkout -b practice-pr-46683 59fe981^
Switched to a new branch 'practice-pr-46683'
> bundle install
# Create a new Rails app using the checked-out code
> bundle exec rails new ../test_app --dev
...
Using activerecord 7.1.0.alpha from source at `/Users/thomas.countz/Code/rails`
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment