Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

answered questions in pc.md file #1816

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
14 changes: 12 additions & 2 deletions pc.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,20 @@
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?
2. What is the difference between Git and GitHub?
Git is a version control system used for tracking changes in computer files.
2. What is the difference between Git and GitHub?
Github is for managing Git repositories and Git controls what changes are made and to keep track of your code.
3. Why do we create a branch?
To maintain stability while isolating changes made to a code so they can be texted before added to the original code
4. What is the purpose of a Pull Request?
Pull request allow you to tell others about changes you made in a repository. You can go over and discuss changes before merging to a base branch.
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.
You can use command checkout -b and choose which branch youd like to switch to before pressing enter
6. Explain the difference between `git fetch`, `git merge` and `git pull`. What does each command do?
7. What is a merge conflict?
'git fetch' used to download files from repository.
'git merge' takes a developers branch project and adding it to the master project.
'git pull' updates repository on a local version from the remote sourse.
7. What is a merge conflict?
when two commits are made to the same line in a file.
8. How do you resolve a merge conflict?
Open your repository and pull most recent version remove or correct the changed content and save the file. and recheck the pull request if you dont see any merge conflicts your good to go.