Skip to content

Instantly share code, notes, and snippets.

@mike-pete
Last active March 23, 2021 02:53
Show Gist options
  • Save mike-pete/659be58b49df7672f97424a0c4b693d2 to your computer and use it in GitHub Desktop.
Save mike-pete/659be58b49df7672f97424a0c4b693d2 to your computer and use it in GitHub Desktop.
Daily challenge to use folders instead of filenames for struct your site
Go to github.com and create a new repository named "final-project" (https://github.com/new)
Clone your final-project repository using SSH
Add the following to your final-project folder
Folders:
about
contact
css
img
Files:
index.html
css/style.css
about/index.html
contact/index.html
Add, commit and push your work to Github.
// clone the repo you just made
git clone {ssh repo info}
// enter your new folder
cd final-project
// create folders with git-bash
mkdir about contact css img
// create files with git-bash
touch index.html css/style.css about/index.html contact/index.html
// track new files and folders with git-bash
git add -A
// commit changes
git commit -m "added new files and folders"
// push those committed changes
git push -u origin main
// open current folder in vscode and start coding!
code ./
@mike-pete
Copy link
Author

mike-pete commented Mar 23, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment