Grep across history
Find all commits that added or removed the string 'password'
git log -S 'password' --oneline --all
- tool
- git45 commands
More git commands
-
git commit --amend --no-editInclude staged changes in last commit without changing message
-
git push origin --delete feature/old-branchRemove a branch from the remote repository
-
git clean -fdxRemove untracked files and directories (incl. gitignored)
-
git fetch --all --prune --tagsUpdate all remotes and delete stale tracking branches
-
git commit --amend -m 'new message'Rewrite the most recent commit message (local only)