in-class git & github demo for ID-20ST-09 FA24
- Clone this repository to your local machine.
- Open the
index.html
file and add your name to the list of students. - Open the
styles.css
file and add a CSS rule to style your entry (e.g., change the color, font, or add a border). - View your changes locally (see "Viewing Your Changes Locally" section below).
- Commit your changes with a meaningful commit message.
- Push your changes back to GitHub.
index.html
: The main HTML file containing the list of students.styles.css
: The CSS file for styling the HTML content.
To see your changes before committing:
- Find the
index.html
file on your computer. - Right-click the file and select "Open with" and then choose your web browser.
- The page should open in your browser, showing your changes.
- If you make more changes, save the file and refresh the browser to see updates.
If you are using Git from the command line, here are some basic commands to get you started:
- Clone:
git clone [repository-url]
- Stage changes:
git add .
- Commit:
git commit -m "Your message here"
- Push:
git push origin main
Remember to pull the latest changes before pushing: git pull
- Always pull the latest changes before starting to work.
- Try to edit different parts of the file from your classmates.
- Talk and coordinate before you commit changes.
- If you encounter a merge conflict, ask for help. It's not a technical issue but a communication issue. Work with whoever else made the changes to resolve the conflict.