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