Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to push wiki to github

Tags:

git

github

wiki

I cloned wiki of my repository and edited locally, it failed when I push the changes to Github. The help of wiki operation is very short, I cannot figure it out. Please help if you know how to fix this. Thanks.

problem picture

like image 550
Shixiang Wang Avatar asked Dec 18 '17 03:12

Shixiang Wang


2 Answers

Try the same operation in command line:

Once you have cloned your wiki locally, and modified/added files, do:

cd /path/to/local/cloned/wiki
git add .
git commit -m "new files"
git push
like image 89
VonC Avatar answered Oct 23 '22 13:10

VonC


In addition to @VonC answer: Make sure not to use lfs (Large File Storage) for the wiki. Remove lfs support from your global setting and activate lfs separately for each repository.

To uninstall lfs:

cd /path/to/local/cloned/wiki
git lfs uninstall

To reinstall lf in repositories supporting lfs:

cd /path/to/local/cloned/repository
git lfs install --local
like image 1
Martin Avatar answered Oct 23 '22 13:10

Martin