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)
-
Create a new repo
-
Create a wiki page in the new repo (a default homepage is fine just to get it initiated)
-
Create a new folder on your desktop (or wherever) and launch the terminal/console
-
Clone source wiki repo
git clone [email protected]:username/sourceRepoName.wiki.git
- Clone new wiki repo
git clone [email protected]:username/newRepoName.wiki.git
- Navigate to new wiki folder
cd newRepoName.wiki
- Copy in the source wiki files
cp -r ../sourceRepoName.wiki/*.md ./
- Add all new files
git add .
- Commit all to new repo
git commit -m "Add source wiki content to new wiki repo“
- Push all to new repo
git push