Skip to content

London | May-25 | Sumayeh Nasser | sprint1-HomeWorkFixErrors #760

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions homework.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,40 @@

## 1. What is 2 + 2?

5
4

## 2. What is JavaScript?

An exciting new play about coffee.
An object-oriented computer programming language commonly used to create interactive effects within web browsers.


## 3. What three problems does Git & GitHub solve?

When people want to show off code to each other they can put it on GitHub
#### 1. Version Control and Change Tracking (Git)
* Problem: Without version control, it’s hard to track changes in code, manage multiple versions, or undo mistakes.

* Git’s Solution: Git allows you to track every change in your project over time. You can revert to previous versions, compare changes, and collaborate without fear of losing work.

#### 2. Collaboration on Code (GitHub)
* Problem: Working with a team on the same codebase can lead to conflicts and duplicate work if not managed properly.

* GitHub’s Solution: GitHub provides a centralized platform where developers can collaborate, review code through pull requests, and manage issues. It integrates with Git to streamline teamwork.

#### 3. Code Sharing and Distribution (GitHub)
* Problem: Without a public or private repository, it’s difficult to share code with others or publish it for open-source communities.

* GitHub’s Solution: GitHub hosts your repositories online, making it easy to share your code, collaborate with others, and even build a portfolio for your projects. It also provides tools like project boards, wikis, and actions for continuous integration and deployment.

## 4. What happens when you `fork` a repository?

You delete it
Forking a repository creates a copy of the original repository in your own GitHub account. this allows you to freely expertment with the code without affecting the original poject.

## 5. What happens when you clone a repository?

It send it to a friend

A full copy of the repository is created from the remote source (like GitHub) to your local machine. the local copy is a complete, independent version of the original, you can work locally edit files, create brunches and commit changes. The local copy has a connection to the original, and the connection allows you to:
* pull changes from the original repo.
* push changes
## 6. What is a Pull Request?

When you send a file over the internet
A pull request is a proposal to merge a set of changes from one branch into another. In a pull request, collaborators can review and discuss the proposed set of changes before they integrate the changes into the main codebase. Pull requests display the differences, or diffs, between the content in the source branch and the content in the target branch.