Suggest changes with a Github Pull Request

From JoBaPedia
Revision as of 13:55, 16 April 2018 by Joachim (talk | contribs) (Created page with "= Suggest changes with a Github Pull Request = Pretty straight forward, but anyways, here is one way to do it: * Create a new branch (or fork, if it is not your repo) ** Eit...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Suggest changes with a Github Pull Request

Pretty straight forward, but anyways, here is one way to do it:

  • Create a new branch (or fork, if it is not your repo)
    • Either on github pages Code tab: enter a new branch name, then pull (or clone) the repo
    • Or create the branch in your local git repo (not tested yet)
  • Switch to the new branch in your local repo (git checkout new-branch-name)
    • use -m option, if you already have local changes that should go into the new branch
  • Make changes, commit, push
  • On github create a pull request, selecting the new branch (or fork) with the changes
  • If there is a github issue for that change, you can mention the pull request there with #pull-request-number
  • If satisfied with the changes, merge pull request on the github page