In an effort to change old habits, a lot of my recent posts have to do with new tools and working with different processes. The nasty old habit, in this case, is working directly in production environments without source control.
Here is a set of steps to working locally in a really lightweight manner:
- create directory for development and navigate to it within the command line
- assuming there is a repos already in existence, clone it into said directory and make a branch to develop on
-
git clone... git branch <name-of-branch> git checkout <name-of-branch>
- install dependencies (bower install)
- setup pre-processing:
codekit (just drag the folder onto codekit) - startup php local webserver in folder
php -S localhost:8000
-
make files, edit files, etc.
- commit changes to git
echo ".DS_Store" >> .gitignore git add . git commit -a -m "message" git push --set-upstream origin <name-of-branch>
- thereafter, make changes and push them
-
git add . git commit -a -m "message" git push origin master
Leave a Reply