| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:f4d109af-0720-04bf-8b02-26539ba7e71a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D7DA:347B18:1507A61:1D64AD6:6AEC7023 |
| html-safe-nonce | 96aaf0a1a2beb8463dcdf3e9d61719570c9f7c6eb646c8d9f8118cc1b281b282 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0RBOjM0N0IxODoxNTA3QTYxOjFENjRBRDY6NkFFQzcwMjMiLCJ2aXNpdG9yX2lkIjoiODcwODkxMzI2MjQzMTU5NjU3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 155c693f5018c39e0b1fe80373d151046ef87574fd3d51b410e89d61c3bc51ce |
| hovercard-subject-tag | pull_request:4815848684 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/progit/progit2/2095/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/8cb3ec7d499ba9a5024101454f5847cb52e45f5a8bdbd0e6fa1bd29a50451ce9/progit/progit2/pull/2095 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8cb3ec7d499ba9a5024101454f5847cb52e45f5a8bdbd0e6fa1bd29a50451ce9/progit/progit2/pull/2095 |
| og:image:alt | I provide my work under the project license.
I grant such license of my work as is required for the purposes of future print editions to Ben Straub and Scott Chacon.
Changes
Context
Fixes #1524 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | das-g |
| hostname | github.com |
| expected-hostname | github.com |
| None | df3d8f18192e5abe20e94c3682d359994d8a9a7c87d8089a67a508a37977e972 |
| turbo-cache-control | no-cache |
| go-import | github.com/progit/progit2 git https://github.com/progit/progit2.git |
| octolytics-dimension-user_id | 95588 |
| octolytics-dimension-user_login | progit |
| octolytics-dimension-repository_id | 15400220 |
| octolytics-dimension-repository_nwo | progit/progit2 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 15400220 |
| octolytics-dimension-repository_network_root_nwo | progit/progit2 |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a97c86202ed84efe2eabdcfd54fcee639c79bb3c |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/progit/progit2/pull/2095#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprogit%2Fprogit2%2Fpull%2F2095 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprogit%2Fprogit2%2Fpull%2F2095 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=progit%2Fprogit2 |
| Reload | https://github.com/progit/progit2/pull/2095 |
| Reload | https://github.com/progit/progit2/pull/2095 |
| Reload | https://github.com/progit/progit2/pull/2095 |
| progit | https://github.com/progit |
| progit2 | https://github.com/progit/progit2 |
| Code | https://github.com/progit/progit2 |
| Issues172 (172) | https://github.com/progit/progit2/issues |
| Pull requests49 (49) | https://github.com/progit/progit2/pulls |
| Actions | https://github.com/progit/progit2/actions |
| Projects | https://github.com/progit/progit2/projects |
| Security and quality | https://github.com/progit/progit2/security |
| Insights | https://github.com/progit/progit2/pulse |
| https://github.com/progit/progit2 |
| das-g | https://github.com/das-g |
| progit:main | https://github.com/progit/progit2/tree/main |
| das-g:replace-checkout | https://github.com/das-g/progit2/tree/replace-checkout |
| Conversation | https://github.com/progit/progit2/pull/2095 |
| Commits5 (5) | https://github.com/progit/progit2/pull/2095/commits |
| Checks | https://github.com/progit/progit2/pull/2095/checks |
| Files changed | https://github.com/progit/progit2/pull/2095/files |
| favor git switch and git restore over git checkout | https://github.com/progit/progit2/pull/2095#top |
| das-g | https://github.com/das-g |
| progit:main | https://github.com/progit/progit2/tree/main |
| das-g:replace-checkout | https://github.com/das-g/progit2/tree/replace-checkout |
|
| https://github.com/das-g |
| das-g | https://github.com/das-g |
| Oct 11, 2026 | https://github.com/progit/progit2/pull/2095#issue-5797057254 |
| project license | https://github.com/progit/progit2/blob/main/LICENSE.asc |
| Ben Straub | https://github.com/ben |
| Scott Chacon | https://github.com/schacon |
| #1524 | https://github.com/progit/progit2/issues/1524 |
| Please reload this page | https://github.com/progit/progit2/pull/2095 |
| das-g | https://github.com/das-g |
| October 11, 2026 03:17 | https://github.com/progit/progit2/pull/2095#commits-pushed-191a4f1 |
|
| https://github.com/das-g |
| replace git checkout with git restore for restoring file contents | https://github.com/progit/progit2/pull/2095/commits/191a4f198879af3fe109c9bf66287587febe9d96 |
| 191a4f1 | https://github.com/progit/progit2/pull/2095/commits/191a4f198879af3fe109c9bf66287587febe9d96 |
|
| https://github.com/das-g |
| git status now proposes git restore | https://github.com/progit/progit2/pull/2095/commits/4c955738b98d444f742bcf85fed171e836db5274 |
| 4c95573 | https://github.com/progit/progit2/pull/2095/commits/4c955738b98d444f742bcf85fed171e836db5274 |
| https://github.com/das-g |
| das-g | https://github.com/das-g |
| force-pushed | https://github.com/progit/progit2/compare/7095d45b161dfa24d50b3a2b2b9ac34923891e74..2246f789c2684492e783199d50a54669febe5862 |
| 7095d45 | https://github.com/progit/progit2/commit/7095d45b161dfa24d50b3a2b2b9ac34923891e74 |
| 2246f78 | https://github.com/progit/progit2/commit/2246f789c2684492e783199d50a54669febe5862 |
|
Compare
| https://github.com/progit/progit2/compare/7095d45b161dfa24d50b3a2b2b9ac34923891e74..2246f789c2684492e783199d50a54669febe5862 |
| October 11, 2026 02:10 | https://github.com/progit/progit2/pull/2095#event-32967276118 |
| https://github.com/das-g |
| das-g | https://github.com/das-g |
| Oct 11, 2026 | https://github.com/progit/progit2/pull/2095#issuecomment-6104498798 |
| Rewrite recommend git switch instead of git checkout #1524 | https://github.com/progit/progit2/issues/1524 |
| Please reload this page | https://github.com/progit/progit2/pull/2095 |
| https://github.com/das-g |
| das-g | https://github.com/das-g |
|
Oct 11, 2026
| https://github.com/progit/progit2/pull/2095#ref-issue-700177389 |
|
Rewrite recommend git switch instead of git checkout
#1524
| https://github.com/progit/progit2/issues/1524 |
| https://github.com/das-g |
| das-g | https://github.com/das-g |
| force-pushed | https://github.com/progit/progit2/compare/2246f789c2684492e783199d50a54669febe5862..62e8dfa53a36676ce097a13c6f7cf483bffae473 |
| 2246f78 | https://github.com/progit/progit2/commit/2246f789c2684492e783199d50a54669febe5862 |
| 62e8dfa | https://github.com/progit/progit2/commit/62e8dfa53a36676ce097a13c6f7cf483bffae473 |
|
Compare
| https://github.com/progit/progit2/compare/2246f789c2684492e783199d50a54669febe5862..62e8dfa53a36676ce097a13c6f7cf483bffae473 |
| October 11, 2026 02:46 | https://github.com/progit/progit2/pull/2095#event-32968182126 |
| das-g | https://github.com/das-g |
| October 11, 2026 04:54 | https://github.com/progit/progit2/pull/2095#commits-pushed-c8afc00 |
|
| https://github.com/das-g |
| replace git checkout with git switch for moving HEAD | https://github.com/progit/progit2/pull/2095/commits/c8afc00c5f0b2c2dfbe1dc3475670a618166e82a |
| c8afc00 | https://github.com/progit/progit2/pull/2095/commits/c8afc00c5f0b2c2dfbe1dc3475670a618166e82a |
|
| https://github.com/das-g |
| mention git switch alongside git checkout for moving HEAD | https://github.com/progit/progit2/pull/2095/commits/c24103a29792f6b7a28597f2f1cf792728c95291 |
| c24103a | https://github.com/progit/progit2/pull/2095/commits/c24103a29792f6b7a28597f2f1cf792728c95291 |
|
| https://github.com/das-g |
| merge together changes favoring switch and restore over checkout | https://github.com/progit/progit2/pull/2095/commits/dafbb22aa94d0c65570e669f43fc9b3b4e04d8e3 |
| dafbb22 | https://github.com/progit/progit2/pull/2095/commits/dafbb22aa94d0c65570e669f43fc9b3b4e04d8e3 |
| progit#1524 | https://github.com/progit/progit2/issues/1524 |
| https://github.com/das-g |
| das-g | https://github.com/das-g |
| force-pushed | https://github.com/progit/progit2/compare/62e8dfa53a36676ce097a13c6f7cf483bffae473..dafbb22aa94d0c65570e669f43fc9b3b4e04d8e3 |
| 62e8dfa | https://github.com/progit/progit2/commit/62e8dfa53a36676ce097a13c6f7cf483bffae473 |
| dafbb22 | https://github.com/progit/progit2/commit/dafbb22aa94d0c65570e669f43fc9b3b4e04d8e3 |
|
Compare
| https://github.com/progit/progit2/compare/62e8dfa53a36676ce097a13c6f7cf483bffae473..dafbb22aa94d0c65570e669f43fc9b3b4e04d8e3 |
| October 11, 2026 02:54 | https://github.com/progit/progit2/pull/2095#event-32968385862 |
| https://github.co/hiddenchars |
| https://github.com/progit/progit2/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprogit%2Fprogit2%2Fpull%2F2095 |
| Please reload this page | https://github.com/progit/progit2/pull/2095 |
|
Rewrite recommend git switch instead of git checkout
| https://github.com/progit/progit2/issues/1524 |
| Please reload this page | https://github.com/progit/progit2/pull/2095 |
|
| https://github.com/das-g |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |