git info
Category: git
Date: Jan. 28, 2025, 11:29 p.m. PST
Tags: info
View the url of a remote repository
git remote -v
# or
git remote show origin
Compare commit messages on two branches
git log --cherry-mark --oneline <BRANCH1>..<BRANCH2>
Show non-pushed commits
git log origin/master..HEAD
# or
git diff origin/master..HEAD
View log for a file
git log --follow -p -- <FILE>