how to update local repository in git code example Example 1: update git repository $ git pull origin master Example 2: update git repo local git pull origin master