Created
August 20, 2016 09:24
-
-
Save SomeKay/244befd8900378c34d9ebe5c5574b063 to your computer and use it in GitHub Desktop.
Pulling out CSS dependency
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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