This worked for me perfectly:

1.`git stash` to discard your local modifications <br>
2.`git checkout master` to switch to the main branch (Assuming you want to use master) <br>
3.`git pull` to pull last commit from master branch <br>
4.`git status` in order to check everything looks great<br>

    On branch master
    Your branch is up-to-date with 'origin/master'.