Skip to content
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
8 changes: 8 additions & 0 deletions pc.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@
Now that you are all set up, it's time to learn a little more about the tools of the trade. Edit this file and answer the following questions. You are going to need to start familiarizing yourself with the [GitHub docs](https://docs.github.com/en). Docs (short for documentation) are the instructions on how to use a languge or program. A large part of your job as a developer will be learning how to read and work with documentation. Please reference the GitHub docs when answering the questions below. If you cannot find what you are looking for in the docs, you can always start to practice your Google skills!

1. What is Git?
A A distributed version control system.
2. What is the difference between Git and GitHub?
GitHub is a web-based Git repository hosting service, where as, git is a version control system.
3. Why do we create a branch?
so that we can make changes away from the main branch.
4. What is the purpose of a Pull Request?
to request accepting our changes.
5. What is the command you can use to switch between branches? For example you are working on the FIRSTNAME-LASTNAME branch and you want to switch back to main.
cd
6. Explain the difference between `git fetch`, `git merge` and `git pull`. What does each command do?
git fetch allows team members to download changes from a remote repository to their local machine, git merge is the positive conclusion to merge changes and commits and git pull is to submit changes to be queued for merging to main branch.
7. What is a merge conflict?
Conflicts generally arise when two people have changed the same lines in a file, or if one developer deleted a file while another developer was modifying it. In these cases, Git cannot automatically determine what is correct. Conflicts only affect the developer conducting the merge, the rest of the team is unaware of the conflict. Git will mark the file as being conflicted and halt the merging process. It is then the developers' responsibility to resolve the conflict.
8. How do you resolve a merge conflict?
The most direct way to resolve a merge conflict is to edit the conflicted file