git starting command code example Example 1: git basic commands git diff <sourcebranch> <targetbranch> Example 2: git basic commands git add <filename>