development:ohdsi_github_projects_v2
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| development:ohdsi_github_projects_v2 [2016/10/19 22:13] – chrisknoll | development:ohdsi_github_projects_v2 [2017/02/02 14:41] (current) – chrisknoll | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | OHDSI open-source development best practices (DRAFT) | + | ===== Github Contributor Best Practices ===== |
| Contributors: | Contributors: | ||
| Line 222: | Line 221: | ||
| The shared-feature-pr will contain a copy of the commits from shared-feature branch, but applied to the top of the master branch. After pushing, the branch will be available on github as a **head** of the pull request. | The shared-feature-pr will contain a copy of the commits from shared-feature branch, but applied to the top of the master branch. After pushing, the branch will be available on github as a **head** of the pull request. | ||
| + | === Syncing an upstream Fork === | ||
| + | |||
| + | In most cases, the repository you're contributing to is a fork of an OHDSI repository. | ||
| + | |||
| + | < | ||
| + | $ git fetch upstream # will fetch latest commits from the upstream repository | ||
| + | $ git checkout master | ||
| + | $ git merge upstream/ | ||
| + | </ | ||
| + | |||
| + | We force a --ff-only because the only commits that should be applied to your forked repository' | ||
| + | |||
| + | ==== Conclusion ===== | ||
| + | |||
| + | In summary, the main mode of contributing to OHDSI repositories is branching from the master, and submitting Pull Requests. | ||
| + | |||
| + | If there' | ||
development/ohdsi_github_projects_v2.1476915210.txt.gz · Last modified: by chrisknoll
