-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreflection.txt
More file actions
20 lines (15 loc) · 1.34 KB
/
reflection.txt
File metadata and controls
20 lines (15 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Q: What happens when you initialize a repository? why do you need to do it?
A: to initialize a repository "git init" command used which will convert a plain directory into git repository.
We need to do it beacuse git only work on repositry system.
Q: How is the staging srea different from the working directory and the reposiroty? What value do you think it offeres?
A: Staging area servers like a brdge connection between working directory and repository.
when you create a file in working directory, instead of committing directly to repository, you can stage the changes for some time
so that you can multiple change in one shot which one is connected logically.
Q: How can you use the staging area to make sure you have one commit per logical change?
A: If i have multiple files related to one logical change, i can add these multiple file to staging area and then commit these files
at once. same applies for one single file.
Q: What are some situations where you want to use branching?
A: Branches are used when you want to keep your code running and want to make some experiment on the running code.
you can create branch and start working on the experiment, it will not effect your original code.
Q: How do the diagrams help you visualize the branch structure?
A: Diagrams help to understand things easily. It shows where and when we ahev created the branch.