Hacker News new | ask | show | jobs
by dashezup 1786 days ago
I prefer the "git wip" custom command than gitupdate

  git config --global alias.wip "\!git add --all; git commit -a -m \"wip: update\""
  git config --global alias.wtc "\!git add --all; git commit -a -m \"[WTC] \$(curl -s whatthecommit.com/index.txt)\""
I don't like the idea to generate the list of modified files in commit messages, it's not very readable to me plus that I could just generate such info with git log. I tried to write a custom git-wip script to include output of "git status --porcelain=v1" but turns out it's just not necessary since "git log --name-status" could already show it

  git log --name-status
  # or get modified history of a specified file
  git log -p path/to/file.ext