If there is a remote repo and I have cloned it on my mac, when I git
pull and someone else has made changes to the master will my changes
be overwritten?
Yes the changes will be added(integerated) on to the local copy of your current branch, if you do the git pull.
What git pull does, you might find plenty of info about that?
To keep it short. This add or incorporate the changes from remote repo to your current branch.
git pull = git fetch + git merge FETCH_HEAD
What rules followed? In my current experience files that I have not
modified are overwritten but I don’t have any experience as to what
would happen if files that I have modified and someone else modified
have conflicts. Will I be asked to make a decision or will it be
overwritten?
Answer to the second question. Your current branch is not up to date with origin/master
when you do the git pull, it will fetch and add all the changes. If you see if there is conflict between the files, you can solve that using several GUI tools. example, vimdiff
, kdiff3
, meld
, diffuse
, and so on you can configure that in your mergetool config.
How to resolve git merge conflicts in cli?