Skip to content

Commit

Permalink
Merge pull request #3082 from hirooih/docs-testing-PR-before-being-me…
Browse files Browse the repository at this point in the history
…rged

docs: Testing a PR locally before being merged
  • Loading branch information
hirooih committed Jun 25, 2021
2 parents 04a983b + 1522c29 commit c436bca
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/contributions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -532,3 +532,17 @@ Rules for reviewing a pull request

* Put your rough schedule as a comment if you don't have time, but you
want to review.

Testing a PR locally before being merged
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You may want to test a PR locally before it is merged into the master
repository. For example, suppose you want to test ``USERNAME``'s PR with branch
name ``main-fix-foo``;::

git checkout -b tmp-main-fix-foo master
git pull https://github.com/USERNAME/ctags.git main-fix-foo

This creates a branch ``tmp-main-fix-fix-foo`` from a branch ``master`` and
switches to it, then pulls the branch ``main-fix-foo`` from
``https://github.com/USERNAME/ctags.git``.

0 comments on commit c436bca

Please sign in to comment.