handy_git_commands

Handy Git Commands

See Changes

Show names of files that changed between last commit and the working directory.

git diff --name-only HEAD

Show names of files that changed between the last two commits.

git diff --name-only HEAD HEAD~1

concise one-line log

git log --date=iso --pretty=format:"%h%x09%an%x09%ad%x09%s"
  • handy_git_commands.txt
  • Last modified: 2023/11/15 18:00
  • by mgupton