Skip to content

Instantly share code, notes, and snippets.

@digitalm
Created May 24, 2022 02:32
Show Gist options
  • Save digitalm/ac3268bb119e3bbcb3d238ad3ef8a988 to your computer and use it in GitHub Desktop.
Save digitalm/ac3268bb119e3bbcb3d238ad3ef8a988 to your computer and use it in GitHub Desktop.
way to delete revisions of github wiki
# wiki は repo とは別のリポジトリになっている。
# github uri => https://github.com/[user or org]/[repo].wiki.git
# clone the wiki
git clone https://github.com/[user or org]/[repo].wiki.git
# rm .git folder
rm -rf .git
# 初期化
git init
git add .
git commit -m "Initial commit"
# or
git commit --allow-empty -m "Initial commit"
# push to github
git remote add origin https://github.com/[user or org]/[repo].wiki.git
git push -u --force origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment