SyntaxFix
Write A Post
Hire A Developer
Questions
🔍
[git] How do I remove the old history from a git repository?
Home
Question
How do I remove the old history from a git repository?
remove git data, rm .git
git init
add a git remote
force push
Examples related to
git
•
Does the target directory for a git clone have to match the repo name?
•
Git fatal: protocol 'https' is not supported
•
Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
•
git clone: Authentication failed for <URL>
•
destination path already exists and is not an empty directory
•
SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
•
GitLab remote: HTTP Basic: Access denied and fatal Authentication
•
How can I switch to another branch in git?
•
VS 2017 Git Local Commit DB.lock error on every commit
•
How to remove an unpushed outgoing commit in Visual Studio?
Examples related to
git-filter-branch
•
git rm - fatal: pathspec did not match any files
•
How do I remove the old history from a git repository?
•
Change first commit of project with Git?
•
Remove sensitive files and their commits from Git history
•
How to change the author and committer name and e-mail of multiple commits in Git?
•
Detach (move) subdirectory into separate Git repository
•
How do you fix a bad merge, and replay your good commits onto a fixed merge?