How to clone this wiki - foundry4/fsa-digital-badges GitHub Wiki

How to copy a Github wiki from one repo to another (with a clean history)

  1. Create a new repo

  2. Create a wiki page in the new repo (a default homepage is fine just to get it initiated)

  3. Create a new folder on your desktop (or wherever) and launch the terminal/console

  4. Clone source wiki repo

git clone [email protected]:username/sourceRepoName.wiki.git

  1. Clone new wiki repo

git clone [email protected]:username/newRepoName.wiki.git

  1. Navigate to new wiki folder

cd newRepoName.wiki

  1. Copy in the source wiki files

cp -r ../sourceRepoName.wiki/*.md ./

  1. Add all new files

git add .

  1. Commit all to new repo

git commit -m "Add source wiki content to new wiki repo“

  1. Push all to new repo

git push