You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happens when you initialize a repository? Why do you need to do it?
A .git directory is created.
This is needed to track commits and revisions.
How is the staging area different from the working directory and the repository?
What value do you think it offers?
Deciding what to commit, keeping related changes together, leaving other changes in a working state.
How can you use the staging area to make sure you have one commit per logical
change?
review the output of git diff --staging and make sure all changes are related to one logica change. Review git status to make sure unrelated files are not in staging.
What are some situations when branches would be helpful in keeping your history
organized? How would branches help?
How do the diagrams help you visualize the branch structure?
What is the result of merging two branches together? Why do we represent it in
the diagram the way we do?
What are the pros and cons of Git’s automatic merging vs. always doing merges