René's URL Explorer Experiment


Title: Documenting pushdefault config option · Issue #257 · python/devguide · GitHub

Open Graph Title: Documenting pushdefault config option · Issue #257 · python/devguide

X Title: Documenting pushdefault config option · Issue #257 · python/devguide

Description: There seem to be 3 variations of the git push command: Use git push origin branchname and always specify the remote and the branch Use git push -u origin branchname on the first push to set origin as the default and then just use git pus...

Open Graph Description: There seem to be 3 variations of the git push command: Use git push origin branchname and always specify the remote and the branch Use git push -u origin branchname on the first push to set origin ...

X Description: There seem to be 3 variations of the git push command: Use git push origin branchname and always specify the remote and the branch Use git push -u origin branchname on the first push to set origin ...

Opengraph URL: https://github.com/python/devguide/issues/257

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Documenting pushdefault config option","articleBody":"There seem to be 3 variations of the `git push` command:\r\n1. Use `git push origin branchname` and always specify the remote and the branch\r\n2. Use `git push -u origin branchname` on the first push to set `origin` as the default and then just use `git push`\r\n3. Set the `pushdefault` to `origin` in `.git/config` and just use `git push`\r\n\r\nThe first method is the one suggested in the devguide \r\n(e.g. in the [submitting section](https://devguide.python.org/pullrequest/#submitting)); the second is also documented in the [pushing changes section](https://devguide.python.org/committing/#pushing-changes); the third is apparently somewhat recent and not yet documented.\r\n\r\nThe pushdefault is configured by adding to `.git/config`:\r\n```\r\n[remote]\r\n    pushdefault = origin\r\n```\r\nWhere `origin` refers to the user's fork of cpython.  AFAICT almost all the pushes should go to `origin`.\r\n\r\nEach method has pros and cons:\r\n\r\nFirst method:\r\n* pros: explicit is better than implicit\r\n* cons: longer to type, harder to remember, could get the arg names/order wrong\r\n\r\nSecond method:\r\n* pros: still explicit but shorter to type for the following pushes\r\n* cons: same as above but only applies to the first push on each branch\r\n\r\nThird method:\r\n* pros: easier to remember, shorter to type, works like `hg push`\r\n* cons: less explicit\r\n\r\nThe question is: which one should we adopt as the recommended method?\r\n\r\n","author":{"url":"https://github.com/ezio-melotti","@type":"Person","name":"ezio-melotti"},"datePublished":"2017-09-04T23:27:02Z","url":"https://github.com/python/devguide/issues/257"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0daad451-d2fc-6182-4d72-7b0195bcdc23
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDF68:A70A9:1324A6F:1954578:6B01EECD
html-safe-noncee3ced7bf69c80c3f0596080468877ce1815a0edb70192dc79feb930fd2133a40
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjY4OkE3MEE5OjEzMjRBNkY6MTk1NDU3ODo2QjAxRUVDRCIsInZpc2l0b3JfaWQiOiI4MjUzNTIxNzI0MDMzODU1MTgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac35000cb3f016f9bc150de98d0f8cf18cedf774ff0a09ee43bba4d24cea9c378c
hovercard-subject-tagissue:255128186
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/devguide/257/issue_layout
twitter:imagehttps://opengraph.githubassets.com/39ea95eddef23ccdee75448124c2efa9f58dd0b6d1be9ba8e7cc5c35e8aedb8e/python/devguide/issues/257
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/39ea95eddef23ccdee75448124c2efa9f58dd0b6d1be9ba8e7cc5c35e8aedb8e/python/devguide/issues/257
og:image:altThere seem to be 3 variations of the git push command: Use git push origin branchname and always specify the remote and the branch Use git push -u origin branchname on the first push to set origin ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameezio-melotti
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/devguide git https://github.com/python/devguide.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id63972479
octolytics-dimension-repository_nwopython/devguide
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id63972479
octolytics-dimension-repository_network_root_nwopython/devguide
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/devguide/issues/257#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fdevguide%2Fissues%2F257
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fdevguide%2Fissues%2F257
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fdevguide
Reloadhttps://github.com/python/devguide/issues/257
Reloadhttps://github.com/python/devguide/issues/257
Reloadhttps://github.com/python/devguide/issues/257
pythonhttps://github.com/python
devguidehttps://github.com/python/devguide
Codehttps://github.com/python/devguide
Issues83 (83)https://github.com/python/devguide/issues
Pull requests41 (41)https://github.com/python/devguide/pulls
Actionshttps://github.com/python/devguide/actions
Projectshttps://github.com/python/devguide/projects
Security and qualityhttps://github.com/python/devguide/security
Insightshttps://github.com/python/devguide/insights
https://github.com/python/devguide
New issuehttps://github.com/login?return_to=https://github.com/python/devguide/issues/257
New issuehttps://github.com/login?return_to=https://github.com/python/devguide/issues/257
#1944https://github.com/python/devguide/pull/1944
Documenting pushdefault config optionhttps://github.com/python/devguide/issues/257#top
#1944https://github.com/python/devguide/pull/1944
topic-githttps://github.com/python/devguide/issues?q=state%3Aopen%20label%3A%22topic-git%22
type-featureAdditions; New content or section neededhttps://github.com/python/devguide/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/ezio-melotti
ezio-melottihttps://github.com/ezio-melotti
on Sep 4, 2017https://github.com/python/devguide/issues/257#issue-255128186
submitting sectionhttps://devguide.python.org/pullrequest/#submitting
pushing changes sectionhttps://devguide.python.org/committing/#pushing-changes
ezio-melottihttps://github.com/ezio-melotti
questionhttps://github.com/python/devguide/issues?q=state%3Aopen%20label%3A%22question%22
on Sep 4, 2017https://github.com/python/devguide/issues/257#event-1234003921
https://github.com/Mariatta
Mariattahttps://github.com/Mariatta
on Sep 5, 2017https://github.com/python/devguide/issues/257#issuecomment-327195681
GitHub help pagehttps://help.github.com/articles/adding-a-file-to-a-repository-using-the-command-line/
https://github.com/ezio-melotti
ezio-melottihttps://github.com/ezio-melotti
on Sep 5, 2017https://github.com/python/devguide/issues/257#issuecomment-327229976
https://github.com/willingc
willingchttps://github.com/willingc
on Sep 7, 2017https://github.com/python/devguide/issues/257#issuecomment-327872490
--dry-runhttps://git-scm.com/docs/git-push#git-push---dry-run
https://github.com/ezio-melotti
ezio-melottihttps://github.com/ezio-melotti
on Sep 29, 2017https://github.com/python/devguide/issues/257#issuecomment-332996144
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
on Sep 29, 2017https://github.com/python/devguide/issues/257#issuecomment-333179596
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
on Sep 29, 2017https://github.com/python/devguide/issues/257#issuecomment-333179850
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
on Sep 29, 2017https://github.com/python/devguide/issues/257#issuecomment-333247516
https://github.com/willingc
willingchttps://github.com/willingc
on Mar 19, 2018https://github.com/python/devguide/issues/257#issuecomment-374223706
willingchttps://github.com/willingc
type-featureAdditions; New content or section neededhttps://github.com/python/devguide/issues?q=state%3Aopen%20label%3A%22type-feature%22
questionhttps://github.com/python/devguide/issues?q=state%3Aopen%20label%3A%22question%22
on Mar 19, 2018https://github.com/python/devguide/issues/257#event-1528560745
willingchttps://github.com/willingc
guide-new contenthttps://github.com/python/devguide/issues?q=state%3Aopen%20label%3A%22guide-new%20content%22
type-featureAdditions; New content or section neededhttps://github.com/python/devguide/issues?q=state%3Aopen%20label%3A%22type-feature%22
topic-dev processhttps://github.com/python/devguide/issues?q=state%3Aopen%20label%3A%22topic-dev%20process%22
type-featureAdditions; New content or section neededhttps://github.com/python/devguide/issues?q=state%3Aopen%20label%3A%22type-feature%22
on Oct 11, 2023https://github.com/python/devguide/issues/257#event-10616160443
StanFromIrelandhttps://github.com/StanFromIreland
type-featurehttps://github.com/python/devguide/issues?q=state%3Aopen%20label%3A%22type-feature%22
on Mar 3, 2026https://github.com/python/devguide/issues/257#event-23236996031
StanFromIrelandhttps://github.com/StanFromIreland
topic-githttps://github.com/python/devguide/issues?q=state%3Aopen%20label%3A%22topic-git%22
topic-dev processhttps://github.com/python/devguide/issues?q=state%3Aopen%20label%3A%22topic-dev%20process%22
on Jun 13, 2026https://github.com/python/devguide/issues/257#event-26711704697
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/devguide/issues/257
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/devguide/issues/257
topic-githttps://github.com/python/devguide/issues?q=state%3Aopen%20label%3A%22topic-git%22
type-featureAdditions; New content or section neededhttps://github.com/python/devguide/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.