git apply code example Example 1: gitapply patch file git apply <filename> Example 2: git apply git apply yourcoworkers.diff