Daily Shaarli

All links of one day in a single page.

May 9, 2019

Find A String in a Massive Git Repo - DEV Community 👩‍💻👨‍💻

git grep "the magic string" git show-ref --heads
c5cd1d8:path/to/file.js:let a = "the magic string"
git branch --contains
c5cd1d8

Resolving tricky situations with git reset and rebase 🧶 - DEV Community 👩‍💻👨‍💻

correct a recent commit:
git stash; git rebase -i HEAD~insert_commit_history_depth

top commit line to "edit" then

git stash pop; git add .; git rebase --continue