Search the whole history for a string
Find all commits that added or removed the string 'password'. Hopefully there are none
git log -S 'password' --oneline --all
- tool
- git45 commands
More git commands
-
git commit --amend --no-editAdd staged changes to the last commit and keep its message
-
git push origin --delete feature/old-branchRemove a branch from the remote repository (origin)
-
git clean -fdxDelete untracked files and directories, including ignored ones. There is no undo
-
git fetch --all --prune --tagsUpdate all remotes and tags, and delete stale remote-tracking branches
-
git commit --amend -m 'new message'Rewrite the message of the latest commit. Safe only before you push