diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..2c66a27 Binary files /dev/null and b/.DS_Store differ diff --git a/LICENSE b/LICENSE deleted file mode 100644 index d01f8fb..0000000 --- a/LICENSE +++ /dev/null @@ -1,18 +0,0 @@ -MIT License - -Copyright (c) 2025 admin - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and -associated documentation files (the "Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the -following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial -portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT -LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO -EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Presentatinon_Git_Fundamentals.html b/Presentatinon_Git_Fundamentals.html new file mode 100644 index 0000000..bb9d288 --- /dev/null +++ b/Presentatinon_Git_Fundamentals.html @@ -0,0 +1,579 @@ + + + + + + Git Fundamentals - Grade 11 ICT + + + +
+
+ + +
+ +
+
+ +
+

Lesson 1: Introduction to Git

+

Learning Outcomes

+
    +
  • Understand what Git is and why it's important for developers
  • +
  • Install Git on your computer
  • +
  • Configure Git with your user credentials
  • +
  • Understand the basic Git workflow
  • +
+ +

Why Git Matters

+
+

Git is the most widely used version control system in the world. It allows developers to:

+
    +
  • Track changes to code over time
  • +
  • Collaborate with other developers on the same project
  • +
  • Revert to previous versions if something goes wrong
  • +
  • Work on different features simultaneously without conflicts
  • +
+

Understanding Git is essential for any software development career!

+
+
+ +
+

Git Introduction Video

+
+ +
+

+ Note: We're using a general Git introduction video here. The original link was to a text tutorial, but a video is more engaging for a presentation. +

+
+ +
+

Setting Up Git

+

Installation Instructions

+ +

Windows/Mac

+
    +
  • Visit git-scm.com
  • +
  • Download the latest version for your operating system
  • +
  • Run the installer with default settings
  • +
+ +

Chrome OS (2020+ devices)

+
    +
  • Go to the Launcher
  • +
  • Search for "Linux" and click "Turn on"
  • +
  • Git is included in the Linux environment
  • +
+ +

Older Chrome OS devices

+
    +
  • Install Termux from the Google Play Store
  • +
  • Open Termux and enter: pkg install git
  • +
  • Type y when prompted to confirm installation
  • +
+
+ +
+

Configuring Git

+

Setting Your Credentials

+ +

After installing Git, you need to configure your username and email address:

+ +
+git config --global user.name "g11s1"
+git config --global user.email "g11s1@ict.ru" +
+ +
+

Important Note: Git credentials are set per computer, not per folder. If you change computers or someone else uses your computer, you'll need to check and possibly update the Git user credentials.

+

To check your current Git configuration:

+
git config --list
+
+ +

Exercise: Configure Git

+
+
    +
  1. Open your terminal/command prompt
  2. +
  3. Set your username: git config --global user.name "g11sX" (replace X with your student number)
  4. +
  5. Set your email: git config --global user.email "g11sX@ict.ru"
  6. +
  7. Verify your settings: git config --list
  8. +
+
+
+ + +
+

Lesson 2: Working with Local Repositories

+

Learning Outcomes

+
    +
  • Create and initialize a local Git repository
  • +
  • Understand the basic Git workflow: add, commit, status
  • +
  • Fork and clone remote repositories
  • +
  • Make changes and push them to a remote repository
  • +
+ +

Why This Matters

+
+

Local repositories allow you to work on projects independently before sharing your changes. Understanding how to:

+
    +
  • Create repositories
  • +
  • Track changes with commits
  • +
  • Work with remote repositories
  • +
+

These are fundamental skills for any development workflow!

+
+
+ +
+

Challenge 1: Local Repository

+
+
    +
  1. Create a new folder called my-first-git-project
  2. +
  3. Initialize it as a Git project: git init
  4. +
  5. Open the folder in Sublime Text
  6. +
  7. Create a basic README.md with an explanation of a project you'd like to do (use headers, lists, etc.)
  8. +
  9. Add the file to staging: git add README.md
  10. +
  11. Commit the changes: git commit -m "Added README file"
  12. +
  13. Check the commit history: git log
  14. +
+
+ +

Example README.md

+
+# My First Git Project
+
+## Project Description
+This is a simple web application that will:
+- Display current weather information
+- Allow users to search for weather by city
+- Show a 5-day forecast
+
+## Technologies Used
+- HTML
+- CSS
+- JavaScript
+- Weather API +
+
+ +
+

Challenge 2: Fork and Clone Repository

+
+

Forking a Repository

+
    +
  1. Go to the example repository: https://gitea.techshare.cc/technolyceum/g11-m2.git
  2. +
  3. Click the "Fork" button to create your own copy
  4. +
+ +

Cloning to Your Local Environment

+
    +
  1. Open your terminal/command tool
  2. +
  3. Navigate to your projects folder: cd projects
  4. +
  5. Clone your forked repository: git clone [your-forked-repo-url]
  6. +
  7. Navigate into the new folder: cd [repository-name]
  8. +
+ +

Making and Pushing Changes

+
    +
  1. Make changes to the index.html file
  2. +
  3. Stage your changes: git add .
  4. +
  5. Check status: git status
  6. +
  7. Commit changes: git commit -m "Changed index file"
  8. +
  9. Push to remote: git push -u origin master
  10. +
  11. Review your changes on the remote repository website
  12. +
+
+
+ + +
+

Lesson 3: Collaboration with Git

+

Learning Outcomes

+
    +
  • Add collaborators to a GitHub repository
  • +
  • Clone and work on a collaborator's repository
  • +
  • Understand how to push changes and view differences
  • +
  • Use Git commands to compare changes between versions
  • +
+ +

Why Collaboration Matters

+
+

Most software development happens in teams. Git enables:

+
    +
  • Multiple developers to work on the same codebase
  • +
  • Clear tracking of who made what changes
  • +
  • Managing contributions from different team members
  • +
  • Resolving conflicts when changes overlap
  • +
+

These collaboration skills are essential for real-world development!

+
+
+ +
+

Adding Collaborators

+
+

Step 1: Pair Up

+

Find a partner for this exercise - either a classmate or mentor.

+ +

Step 2: Add Collaborator in GitHub

+
    +
  1. Navigate to your project in GitHub
  2. +
  3. Click on the 'Settings' tab
  4. +
  5. Select 'Collaborators' from the left menu
  6. +
  7. Click 'Add people' and search for your partner's GitHub username
  8. +
  9. Send the collaboration invitation
  10. +
+ +
+

Note: The exact steps may vary slightly depending on the Git platform (GitHub, GitLab, Gitea, etc.), but the concept is the same.

+
+
+
+ +
+

Collaboration Exercise

+
+

Step 3: Clone and Modify

+
    +
  1. Your partner should clone your repository: git clone [your-repo-url]
  2. +
  3. Create a new folder for this project if needed
  4. +
  5. Give your partner a simple "spec" - a small change to make in your project
  6. +
  7. Your partner makes the change, then: +
    +git add .
    +git commit -m "Made requested change"
    +git push origin master +
    +
  8. +
+ +

Step 4: Review Changes

+
    +
  1. Pull the latest changes: git pull origin master
  2. +
  3. View recent changes: git diff HEAD
  4. +
  5. Compare with previous version: git diff HEAD~1
  6. +
  7. Check the commit history on GitHub to see your partner's contribution
  8. +
+ +

Step 5: Reverse Roles

+

Now repeat the process with roles reversed - you become the collaborator on your partner's repository.

+
+
+ +
+

Git Commands Summary

+

Basic Git Workflow

+ +
+# Initialize a new repository
+git init

+ +# Clone an existing repository
+git clone [repository-url]

+ +# Check status of files
+git status

+ +# Add files to staging
+git add [filename]
+git add . # Add all files

+ +# Commit changes
+git commit -m "Commit message"

+ +# Push to remote repository
+git push origin master

+ +# Pull latest changes
+git pull origin master

+ +# View commit history
+git log

+ +# Compare changes
+git diff
+git diff HEAD
+git diff HEAD~1 +
+ +

Congratulations!

+

You've completed the 3-lesson Git fundamentals course. You now have the basic skills to use Git for version control and collaboration!

+
+
+
+ +
+ +
+ + +
+ + + + \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index e78e9b3..0000000 --- a/README.md +++ /dev/null @@ -1,27 +0,0 @@ -I am updateing this text. - -## 🎯 Here's What You Need to Do: - -### Step 1: Make Your Own Copy -- Click the **FORK** button at the top ↑ -- This creates your personal workspace - -### Step 2: Go to Your Workspace -- After forking, you'll see YOUR name in the website address -- This is now YOUR project - -### Step 3: Work on Your Project -- Only work in YOUR forked copy -- Your teacher will check YOUR work here - -## ❌ Important: Don't Work Here! -- This page is just the starting template -- Your work should be in YOUR copy - -## ✅ Remember: -- Always click FORK first -- Always work in your forked copy -- Your username should be in the website address - -## Need Help? 🤔 -Just ask your teacher! We're here to help you learn. diff --git a/git-challenges b/git-challenges new file mode 160000 index 0000000..25509f3 --- /dev/null +++ b/git-challenges @@ -0,0 +1 @@ +Subproject commit 25509f3f2249a4bb8aab3bddf4808475ef28ba7e diff --git a/light.html b/light.html deleted file mode 100644 index 8a6af9b..0000000 --- a/light.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - -

What Can JavaScript Do?

- -

JavaScript can change HTML attribute values.

- -

In this case JavaScript changes the value of the src (source) attribute of an image.

- - - - - - - - - \ No newline at end of file diff --git a/pic_bulboff.gif b/pic_bulboff.gif deleted file mode 100644 index 65cacdd..0000000 Binary files a/pic_bulboff.gif and /dev/null differ diff --git a/pic_bulbon.gif b/pic_bulbon.gif deleted file mode 100644 index 72ecfc4..0000000 Binary files a/pic_bulbon.gif and /dev/null differ