Skip to content

Instantly share code, notes, and snippets.

@SomeKay
Created August 20, 2016 09:24
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 SomeKay/244befd8900378c34d9ebe5c5574b063 to your computer and use it in GitHub Desktop.
Save SomeKay/244befd8900378c34d9ebe5c5574b063 to your computer and use it in GitHub Desktop.
Pulling out CSS dependency
// Pull the dependency out into a submodule
cd submodules/styles
git submodule add https://github.com/comsysto/blog-css-architecture-css-dependency submodules/bootstrap
mv bootstrap-sass-master/* submodules/bootstrap
rm -rf bootstrap-sass-master
cd submodules/bootstrap
git add .
git commit -m "pulled out CSS dependency"
git push
// Update your CSS repository with the new reference
cd ..
cd ..
git add .
git commit -m "puled out CSS dependency"
git push
// Update your main project with the new reference
cd ..
cd ..
git add .
git commit -m "puled out CSS dependency"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment