Last active
March 23, 2021 02:53
-
-
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
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
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. |
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
// 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 ./ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git-bash cheat sheet: https://gist.github.com/kid-on-github/7c2f9a7ca2d6ff67c56cd6f59ac5815b