It is a good habit to always pull/fetch before you start edit your code. Just incase you missed out the commited work from your friend. If not, you will face the problem of merge conflict.
How to fetch/update?
- Open your Git Bash
- Navigate to your repository
- Type in
git pull origin
branch_name
- The command will display info of the latest commit.