Skip to content

Instantly share code, notes, and snippets.

Created March 17, 2015 02:01
  • Star 31 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Delete GitHub wiki revisions
# Delete prior revisions from a GitHub wiki so that only the most-recent
# version of the content is available.
# Clone the wiki.
git clone[user]/[repo].wiki.git
# Remove the .git folder.
rm -rf .git
# Reconstruct the local repo with only latest content
git init
git add .
git commit -m "Initial commit"
# Push to GitHub
git remote add origin <github-uri>
git push -u --force origin master
Copy link

I also had problems pushing using: git push -u --force origin master
I seems you need a personal access token to login on the command line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment