git diff-tree --no-commit-id --name-only -r 289b092d
From the branch you wish to clear history of (e.g., master
):
git checkout --orphan temp_branch
git add -A
git commit -am "The first commit"
git branch -D master
git branch -m master
git push -f origin master
From the branch you want to merge TO:
git merge from_branch --squash
git tag -a v1.0 5d80d -m "release v1.0"
git push origin --tags
git tag -d v1.0
git push origin -d v1.0
After cloning a repo that contains submodules, git will not automatically fetch them. Instead, you must:
git submodule init
git submodule update
git clone [email protected]:witt3rd/witt3rd.github.io.git