Create a gist now

Instantly share code, notes, and snippets.

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 https://github.com/[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
@pejmanchatrrooz

This comment has been minimized.

Show comment Hide comment
@pejmanchatrrooz

pejmanchatrrooz Sep 27, 2017

How can I use this in windows, and I'm just started with github could you please help me on this ? is there any step-by-step guide ?

How can I use this in windows, and I'm just started with github could you please help me on this ? is there any step-by-step guide ?

@Richienb

This comment has been minimized.

Show comment Hide comment
@Richienb

Richienb Nov 17, 2017

To Use This On Windows Install Git Here Then You Can Execute The Commands In The Terminal

To Use This On Windows Install Git Here Then You Can Execute The Commands In The Terminal

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