Skip to content

Instantly share code, notes, and snippets.

@bnchdrff
Last active February 5, 2018 21:26
Show Gist options
  • Save bnchdrff/8ee052320279242a871fd58d0c8ab5cd to your computer and use it in GitHub Desktop.
Save bnchdrff/8ee052320279242a871fd58d0c8ab5cd to your computer and use it in GitHub Desktop.
cool git-related snippets
// toggle files in PR review
document.querySelectorAll('.file-actions button.js-details-target').forEach(function(el) {el.click()})
// edit any files changed since this branch started
vim $(git diff --name-only master...HEAD | xargs echo)
// list all commits that involved deleting files and show which files were deleted
git log --diff-filter=D --summary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment