Created
May 24, 2022 02:32
-
-
Save digitalm/ac3268bb119e3bbcb3d238ad3ef8a988 to your computer and use it in GitHub Desktop.
way to delete revisions of github wiki
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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