In your terminal, copy paste the code below to clone this repository and turn off git so that it's simply a copy of the folder structure in your IDE. You will NOT be able to push.
git clone git@github.com:hstatsep/js.git
cd js
rm -rf .git
echo "Done"
classworkis a folder for organizing classwork, assignments, etc.projectsis a folder for your when you want to make something largesandboxis a folder for when you want to try something smalltemplateFile.htmlis a standalone template file to duplicate in order to practice small concepts- to duplicate, use either:
cp templateFile.html sandbox/newFileName.htmlcp templateFile.html classwork/newFileName.html
- to duplicate, use either:
templateFolderis a template folder to duplicate in order to make large projects- to duplicate, use
cp -r templateFolder projects/newProjectName
- to duplicate, use
- In order to see errors and results of
console.log(), first preview the HTML file. - Then, you can do one of the following:
- keyboard shortcut:
- Mac: Command + Option + J
- Windows/Chromebook: Control + Shift + J
- right-click > inspect > switch to console tab
- three-dots in the top-right corner > More tools > Developer Tools > console tab
- keyboard shortcut:
- More information here
- Copy/paste the following into the terminal.
echo "alias gp=\"git add ." >> ~/.bash_profile
echo "git commit -m 'update repo'" >> ~/.bash_profile
echo "git push\"" >> ~/.bash_profile
echo "Done"
- If you still see the last command in your terminal, press ENTER
- Close the terminal and open a new one
- In the future, you can simply type
gpto automatically add/commit/push all updated files in a repo - You can continue to use
git add filenameif you would like to be more selective, and/orgit commit -m "message"if you would like to be more specific