2 ways
first one:
- git fetch
- Action: download the changes
- git merge origin/master
- Fast forward
second one:
- git pull
- git pull origin master
- in case of un-committed changes in directory:
- either commit or use ~git stash push/pop
- in case of editing the same code: Merge conflict