Skip to content

Instantly share code, notes, and snippets.

@omaraboumrad
Last active January 6, 2024 17:08
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omaraboumrad/35654da0a376c57a2e0ab4d92ad0c339 to your computer and use it in GitHub Desktop.
Save omaraboumrad/35654da0a376c57a2e0ab4d92ad0c339 to your computer and use it in GitHub Desktop.
How to contribute to a GitHub Project's Wiki

Setup

Assuming project is SOME/PROJECT And you are FOO

You will need to do the following one time only:

git remote add upstream https://github.com/SOME/PROJECT.wiki.git
  • Fetch the latest master:
git fetch upstream master

Keeping your fork in sync

git checkout master
git fetch upstream master
git merge upstream/master
git push origin master

Submitting changes to your fork

git checkout master
git add your/change/here
git commit -m "single line sub 50 char description"
git push origin master

Submitting changes to the main repository

When you're ready to submit, you need to open an issue https://github.com/SOME/PROJECT/issues and provide the following:

  • Link to your repository.
  • Description to the change you've done.

Core Contributors

Reviewing Changes

As a core contributor you can review the changes done using:

git checkout -b FOO-master
git pull https://github.com/FOO/PROJECT.wiki.git master

Merging Changes

As a core contributors you can merge the changes done using:

git checkout master
git merge --no-ff FOO-master
git push origin master
@ExpandingS
Copy link

Thanks, this is really helpful!

@misspee007
Copy link

Thank you !

@drearondov
Copy link

Thanks, this is gold 😁!

@cyrmax
Copy link

cyrmax commented Jan 6, 2024

Thank you so much for this straight and informative instruction!
You have saved me a lot of nerves and time and also possibly helped lots of good projects in getting russian translation of their wiki pages 😄

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