From 1af4354b5948bb5bb7022a9d9a4997404209f0ec Mon Sep 17 00:00:00 2001 From: chrisopoku22128192 Date: Sat, 4 Jan 2025 20:55:08 +0000 Subject: [PATCH] Added answers to questions in solution.txt --- solution.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 solution.txt diff --git a/solution.txt b/solution.txt new file mode 100644 index 0000000..ff1be0a --- /dev/null +++ b/solution.txt @@ -0,0 +1,21 @@ +1. What is a commit in Git? +A commit is a snapshot of changes made to the files in a Git repository. It represents a point in the project’s history. + +2. What is a branch in Git? +A branch is an independent line of development in a Git repository, used to work on specific features or tasks without affecting the main codebase. + +3. What is a pull request in GitHub? +A pull request (PR) is a way to propose changes from one branch or fork to another branch in a repository, allowing collaborators to review and merge the changes. + +4. How do you initialize a new Git repository? +Run `git init` in the project folder to initialize a new Git repository. + +5. How do you clone a repository from GitHub? +Run `git clone ` to copy a remote repository to your local machine. + +6. How do you stage changes for a commit? +Run `git add ` or `git add .` to stage changes for the next commit. + +7. How do you push changes to a remote repository? +Run `git push origin ` to upload local commits to the remote repository. +