Changes between Version 75 and Version 76 of WorkingWithGit
- Timestamp:
- Feb 6, 2017, 8:28:26 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WorkingWithGit
v75 v76 244 244 245 245 246 === Working with someone else's pull request through its ID === 247 248 This section describes how to work on a PR without the need to clone or pull from the PR author's repository. 249 250 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}}}: 251 {{{ 252 git fetch origin pull/ID/head:BRANCHNAME 253 git checkout BRANCHNAME 254 }}} 255 then work an it as needed, commit and finally decide where to push the changes made, e.g. by 256 {{{ 257 git fetch upstream master 258 git checkout master 259 git merge BRANCHNAME 260 git push upstream master 261 }}} 246 262 247 263 … … 306 322 - [https://git-scm.com/doc Git Documentation] 307 323 - [https://help.github.com GitHub Help] 324 - [https://help.github.com/articles/checking-out-pull-requests-locally/ Checking out GitHub pull requests] 308 325 - [https://git-scm.com/documentation/external-links Git's list of external resources] 309 326 - [https://help.github.com/articles/good-resources-for-learning-git-and-github GitHub's list of external resources]