[MacPorts] WorkingWithGit modified
MacPorts
noreply at macports.org
Mon Feb 6 20:28:26 UTC 2017
Page "WorkingWithGit" was changed by mkae
Diff URL: <https://trac.macports.org/wiki/WorkingWithGit?action=diff&version=76>
Revision 76
Comment: Describe how to work on someone's PR
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: WorkingWithGit
=========================================================================
--- WorkingWithGit (version: 75)
+++ WorkingWithGit (version: 76)
@@ -243,6 +243,22 @@
which will put your local changes on top of ours. Pushing to your fork will update the pull request.
+=== Working with someone else's pull request through its ID ===
+
+This section describes how to work on a PR without the need to clone or pull from the PR author's repository.
+
+Check out - according to [https://help.github.com/articles/checking-out-pull-requests-locally/ GitHub's help] - the pull request {{{#ID}}} to work on as a local branch {{{BRANCHNAME}}}:
+{{{
+git fetch origin pull/ID/head:BRANCHNAME
+git checkout BRANCHNAME
+}}}
+then work an it as needed, commit and finally decide where to push the changes made, e.g. by
+{{{
+git fetch upstream master
+git checkout master
+git merge BRANCHNAME
+git push upstream master
+}}}
@@ -305,6 +321,7 @@
- [https://git-scm.com/doc Git Documentation]
- [https://help.github.com GitHub Help]
+- [https://help.github.com/articles/checking-out-pull-requests-locally/ Checking out GitHub pull requests]
- [https://git-scm.com/documentation/external-links Git's list of external resources]
- [https://help.github.com/articles/good-resources-for-learning-git-and-github GitHub's list of external resources]
- [https://community.kde.org/Infrastructure/Git/Configuration “Infrastructure/Git/Configuration”] at the KDE Community Wiki
-------8<------8<------8<------8<------8<------8<------8<------8<--------
--
Page URL: <https://trac.macports.org/wiki/WorkingWithGit>
MacPorts <https://www.macports.org/>
Ports system for macOS
This is an automated message. Someone added your email address to be
notified of changes on 'WorkingWithGit' page.
If it was not you, please report to admin at macports.org.
More information about the macports-changes
mailing list