Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add info to docs about pulling PR branches #13808

Closed

Conversation

akansha2608
Copy link
Contributor

Fixes #1354

Copy link
Contributor

@jgraham jgraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't quite right. You need to explain that setting this up requires editing the .git/config file, and, assuming that the GitHub remote has the name origin, the line

fetch = +refs/pull/*/head:refs/remotes/origin/pr/*

Needs to be added as an additional line under the heading [remote "origin"]. Or I guess one could create a new remote so that PRs are only fetched on demand, like

[remote "pulls"]
url = git@github.com:web-platform-tests/wpt.git
fetch = +refs/pull/*/head:refs/remotes/pulls/*

I'm not sure which is best to document.

Also please use title case for the heading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add info to docs about pulling PR branches
4 participants