-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlesson_3_reflections.txt
40 lines (33 loc) · 1.85 KB
/
lesson_3_reflections.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
When would you want to use a remote repository rather than keeping all your
work local?
A: When i want to share my work with a collaborator(s) or when i want to work
from multiple machines and sync the work
Why might you want to always pull changes manually rather than having Git
automatically stay up-to-date with your remote repository?
A: Doing it manually assures that what i have is stable, so i can do the update
when i am ready, so that none of my in-progress work gets broken
Describe the differences between forks, clones, and branches. When would you
use one instead of another?
A: Forks are clones that are done for me by Github so that my repo is hosted
on their server as a remote. A clone is when i get a local copy of a repo on my
local working directory. A branch is a commit of my repository with a special
label.
Fork is when i want to have a clone of another person's repo but have GitHub do
all the heavy work for me, and also retain a reference to the other person, so
they get credit for their work. A branch allows me to work on feature/bugs on
my own so that mainline is always stable and errors can be easily fixed while
customers are not affected.
What is the benefit of having a copy of the last known state of the remote
stored locally?
A: This allows me to do a merge offline
I can update just the local copy of the remote branch
I can also use git fetch to update the local copy of the remote branch
..so that i can use git log and git diff to see what changes were introduced on
the local and remote repositories.
This makes it easier to do a merge.
How would you collaborate without using Git or GitHub? What would be easier,
and what would be harder?
Fill in your answer here
When would you want to make changes in a separate branch rather than directly in
master? What benefits does each approach have?
Fill in your answer here