tl;tr For pull request, please do check Allow edits from maintainers, and merge from your new branch into my master branch; Or, propose a file change in Github directly; Or, hit me a message via issue page or my social contacts.
If you are going to create a new theme, new feature or fix a bug, please follow the "fork and pull" model:
- Before writing codes, as you know:
- Click the nice fork button in https://github.com/Edditoria/markdown-plus-plus
- In Power Shell / Command Prompt,
git clone https://github.com/{your.username}/markdown-plus-plus.git
git remote add upstream https://github.com/Edditoria/markdown-plus-plus.git
for fetch and merge in future
- Create a new branch according to what you've gotta do:
git checkout -b theme/{theme-name} {master}
to create a new color scheme for a theme.git checkout -b hotfix/{fix-a-bug} {master}
to fix a bug on current codes.git checkout -b feature/{awesome-feature} {master}
to create awesome features.
- Work on your codes... (Thanks!!)
- Before
commit -am
, please make some manual test, e.g. use thetest.classic.md
file. - Push to your Github
git push origin feature/{awesome-feature}
- In Github, go to my markdown-plus-plus repo
- Click the nice Compare & pull request button
⚠️ Remember to pull to master branch. Make sure:- "base fork: Edditoria/markdown-plus-plus" and "base: master"
- "head fork: {your.name}/markdown-plus-plus" and "compare: {awesome-feature}"
- In the the right sidebar of your pull request, select Allow edits from maintainers.
- Leave a comment to me. Click "Create pull request".
In general case, I will:
- create a new branch,
- evaluate your awesome codes,
- communicate with you and further edit,
- commit and merge it back into master branch.
After your pull request is merged, you can safely erase your branch and pull the changes from my repo:
git push origin --delete feature/{awesome-feature}
git checkout master -f
git branch -D feature/{awesome-feature}
git pull --ff upstream master
Sometimes you may want to fix a typo, or do some small changes that doesn't need a test, you can propose file change directly.
reference: Editing files in another user's repository - Github Help
Want a scheme for your favourite theme? Suggest a more adaptive color? Please leave me a message in issue page
If you are shy in Github, feel free to connect me via [email protected] | @Edditoria | facebook | G+.
🍺 Thank you so much for your contribution!! 🙏