### View the url of a remote repository ```bash git remote -v # or git remote show origin ``` ### Compare commit messages on two branches ```bash git log --cherry-mark --oneline .. ``` ### Show non-pushed commits ```bash git log origin/master..HEAD # or git diff origin/master..HEAD ``` ### View log for a file ```bash git log --follow -p -- ```