Shixiang Wang
Shixiang Wang

Reputation: 2371

How to push wiki to github

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

Upvotes: 9

Views: 8501

Answers (2)

Martin
Martin

Reputation: 11855

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

Upvotes: 1

VonC
VonC

Reputation: 1323115

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

Upvotes: 7

Related Questions