Top "Git-rewrite-history" questions

Rewriting the history of a Git repository, for example to edit old commits, remove unwanted data (e.g. private data or large files), rearrange file structure, fix commit metadata, etc.

How to substitute text from files in git history?

I've always used an interface based git client (smartGit) and thus don't have much experience with the git console. However, …

git substitution git-filter-branch git-rewrite-history bfg-repo-cleaner
Change git email for previous commits

So I read a lot about how to change previous commit's email address but for some reason mine is not …

git git-commit git-rewrite-history
how to re-order commits in Git non-interactively

What non-interactive git command(s) achieve the change from Before to After? Before: A---B---C---D After: A---C'---B'---D'

git git-rewrite-history
Update a development team with rewritten Git repo history, removing big files

I have a git repo with some very large binaries in it. I no longer need them, and I don't …

git project-planning git-filter-branch git-rewrite-history
BFG remove multiple folders

I found that BFG is much faster than the original git-filter-branch. We have multiple svn repo to move to even …

git-rewrite-history bfg-repo-cleaner
git rebase - what's the difference between 'edit' and 'reword'

What's the difference between edit and reword when you do a git rebase? I'm going through some docs which say …

git git-rebase git-rewrite-history
How to permanently delete a commit from Git's history?

How can I permanently delete a commit from Git's history? One of the developers on the team has accidentally committed …

git git-rewrite-history
Amending the message of Git commit made before a merge

I committed some test code before merging in a remote branch. This merge had a lot of conflicts and took …

git git-rewrite-history
remove all binary files recursively from git repo and commit history

I have read a few different threads on removing large binary files from git commit history, but my problem is …

git git-rewrite-history
Remove intermediate commit in Visual Studio Online

I edited my README.md multiple times because I didn't see the preview button. Now my commit history is full …

git azure-devops git-rewrite-history tfvc