Last active
February 5, 2018 21:26
-
-
Save bnchdrff/8ee052320279242a871fd58d0c8ab5cd to your computer and use it in GitHub Desktop.
cool git-related snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// toggle files in PR review | |
document.querySelectorAll('.file-actions button.js-details-target').forEach(function(el) {el.click()}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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