From 3ac199a5fd6306c985b340dfc3bb9a2702945023 Mon Sep 17 00:00:00 2001 From: Amna8840 Date: Wed, 17 Sep 2025 21:09:31 +0000 Subject: [PATCH 1/2] Git Homework -Errors are fixed --- homework.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/homework.md b/homework.md index f7a8449a..4067a699 100644 --- a/homework.md +++ b/homework.md @@ -2,24 +2,28 @@ ## 1. What is 2 + 2? -5 +4 ## 2. What is JavaScript? -An exciting new play about coffee. +JavaScript is a versatile scripting language that can create robust web applications. ## 3. What three problems does Git & GitHub solve? -When people want to show off code to each other they can put it on GitHub +Version control (tracking and reverting code changes) + +Collaboration and conflict resolution (branching, merging, pull requests) + +Backup, sharing, and distribution of code ## 4. What happens when you `fork` a repository? -You delete it +A complete copy of the repository (including code, branches, commits, and tags) is created under your GitHub account. ## 5. What happens when you clone a repository? -It send it to a friend +A full copy of the repository is downloaded from GitHub (or another remote) to your local machine. It includes the entire project history (commits, branches, tags). ## 6. What is a Pull Request? -When you send a file over the internet +A request to merge changes from one branch (often from a fork or feature branch) into another repository/branch. Does not automatically merge — requires approval and action from repository maintainers. From 924e791b9e0625cfd1bf5e918b448f3b1c790f5f Mon Sep 17 00:00:00 2001 From: Amna8840 Date: Wed, 17 Sep 2025 22:09:12 +0000 Subject: [PATCH 2/2] Improve the Layout --- homework.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/homework.md b/homework.md index 4067a699..fdf6280c 100644 --- a/homework.md +++ b/homework.md @@ -1,29 +1,21 @@ # Linus's Homework ## 1. What is 2 + 2? - -4 +4 ## 2. What is JavaScript? - JavaScript is a versatile scripting language that can create robust web applications. ## 3. What three problems does Git & GitHub solve? - Version control (tracking and reverting code changes) - Collaboration and conflict resolution (branching, merging, pull requests) - Backup, sharing, and distribution of code ## 4. What happens when you `fork` a repository? - A complete copy of the repository (including code, branches, commits, and tags) is created under your GitHub account. ## 5. What happens when you clone a repository? - A full copy of the repository is downloaded from GitHub (or another remote) to your local machine. It includes the entire project history (commits, branches, tags). ## 6. What is a Pull Request? - A request to merge changes from one branch (often from a fork or feature branch) into another repository/branch. Does not automatically merge — requires approval and action from repository maintainers.