Skip to content

Changes made were that I answered all of the research questions in ma… #1808

New issue

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

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

Already on GitHub? Sign in to your account

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
25 changes: 25 additions & 0 deletions mac.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,28 @@ Now that you are all set up, it's time to learn a little more about the tools of
6. Explain the difference between `git fetch`, `git merge` and `git pull`. What does each command do?
7. What is a merge conflict?
8. How do you resolve a merge conflict?

1.git keeps track of changes made to files on your computer. It
allows you to make changes while also keeping all former versions of
the file.
2. git is a version control system for you and your source code
present and past whereas github is a cloud service that allows you to
manage git repositories.
3.we create a branch so that we dont mess with the main version of
the repository. instead we work on a clone just in case the changes
fail, then if they do end up being valid changes we can merge the
changes back into the main branch.
4.pull requestes are used to look at both the main branch and
others(while highlighting the changes made) before merging them back
into one.
5. 'git checkout "name of banch"' to switch branches
6. git fetch updates the local repository but does not merge with the
main. git pull does what git fetch does but goes even further and
merges it with the main repository.git merge merges the branches or
repositories back into one.
7. a merge conflict typically happens when for example 2 people
change the same line of code in a file before merging or if one
person deltes a file while another is modifying it.
8.ro resolve a merge conflict, just go into the file and make the
necessary changes. after making the changes use git add and git
commit to commit t he new changes before trying to merge again.