Skip to content

Instantly share code, notes, and snippets.

View niartenyaw's full-sized avatar
🍩

Aaron Wayne niartenyaw

🍩
View GitHub Profile
@niartenyaw
niartenyaw / remove-submodule.sh
Last active February 11, 2021 22:08
App Academy - Remove unwanted submodule from nested Git repos and re-add all the files inside of it
# In most cases, a single Rails app will be attached to a single repo
# As of Rails 5.1, initializing a new project will also automatically initialize Git
# This is perfect in most circumstances, but at App Academy, students have homework and
# project repos that contain multiple rails apps inside them
# To account for this without pushing the submodules, students need to remove the .git
# directory before adding and commiting the new project, but most do not, resulting in