howo too check local git commits code example Example: get unpushed commits git log origin/master..HEAD