René's URL Explorer Experiment


Title: favor `git switch` and `git restore` over `git checkout` by das-g · Pull Request #2095 · progit/progit2 · GitHub

Open Graph Title: favor `git switch` and `git restore` over `git checkout` by das-g · Pull Request #2095 · progit/progit2

X Title: favor `git switch` and `git restore` over `git checkout` by das-g · Pull Request #2095 · progit/progit2

Description: Pro Git 2nd Edition. Contribute to progit/progit2 development by creating an account on GitHub.

Open Graph Description: 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

X Description: 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

Opengraph URL: https://github.com/progit/progit2/pull/2095

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:f4d109af-0720-04bf-8b02-26539ba7e71a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD7DA:347B18:1507A61:1D64AD6:6AEC7023
html-safe-nonce96aaf0a1a2beb8463dcdf3e9d61719570c9f7c6eb646c8d9f8118cc1b281b282
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0RBOjM0N0IxODoxNTA3QTYxOjFENjRBRDY6NkFFQzcwMjMiLCJ2aXNpdG9yX2lkIjoiODcwODkxMzI2MjQzMTU5NjU3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac155c693f5018c39e0b1fe80373d151046ef87574fd3d51b410e89d61c3bc51ce
hovercard-subject-tagpull_request:4815848684
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/progit/progit2/2095/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/8cb3ec7d499ba9a5024101454f5847cb52e45f5a8bdbd0e6fa1bd29a50451ce9/progit/progit2/pull/2095
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8cb3ec7d499ba9a5024101454f5847cb52e45f5a8bdbd0e6fa1bd29a50451ce9/progit/progit2/pull/2095
og:image:altI 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedas-g
hostnamegithub.com
expected-hostnamegithub.com
Nonedf3d8f18192e5abe20e94c3682d359994d8a9a7c87d8089a67a508a37977e972
turbo-cache-controlno-cache
go-importgithub.com/progit/progit2 git https://github.com/progit/progit2.git
octolytics-dimension-user_id95588
octolytics-dimension-user_loginprogit
octolytics-dimension-repository_id15400220
octolytics-dimension-repository_nwoprogit/progit2
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id15400220
octolytics-dimension-repository_network_root_nwoprogit/progit2
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
releasea97c86202ed84efe2eabdcfd54fcee639c79bb3c
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/progit/progit2/pull/2095#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprogit%2Fprogit2%2Fpull%2F2095
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%2Fprogit%2Fprogit2%2Fpull%2F2095
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=progit%2Fprogit2
Reloadhttps://github.com/progit/progit2/pull/2095
Reloadhttps://github.com/progit/progit2/pull/2095
Reloadhttps://github.com/progit/progit2/pull/2095
progithttps://github.com/progit
progit2https://github.com/progit/progit2
Codehttps://github.com/progit/progit2
Issues172 (172)https://github.com/progit/progit2/issues
Pull requests49 (49)https://github.com/progit/progit2/pulls
Actionshttps://github.com/progit/progit2/actions
Projectshttps://github.com/progit/progit2/projects
Security and qualityhttps://github.com/progit/progit2/security
Insightshttps://github.com/progit/progit2/pulse
https://github.com/progit/progit2
das-ghttps://github.com/das-g
progit:mainhttps://github.com/progit/progit2/tree/main
das-g:replace-checkouthttps://github.com/das-g/progit2/tree/replace-checkout
Conversationhttps://github.com/progit/progit2/pull/2095
Commits5 (5)https://github.com/progit/progit2/pull/2095/commits
Checkshttps://github.com/progit/progit2/pull/2095/checks
Files changedhttps://github.com/progit/progit2/pull/2095/files
favor git switch and git restore over git checkouthttps://github.com/progit/progit2/pull/2095#top
das-ghttps://github.com/das-g
progit:mainhttps://github.com/progit/progit2/tree/main
das-g:replace-checkouthttps://github.com/das-g/progit2/tree/replace-checkout
https://github.com/das-g
das-ghttps://github.com/das-g
Oct 11, 2026https://github.com/progit/progit2/pull/2095#issue-5797057254
project licensehttps://github.com/progit/progit2/blob/main/LICENSE.asc
Ben Straubhttps://github.com/ben
Scott Chaconhttps://github.com/schacon
#1524https://github.com/progit/progit2/issues/1524
Please reload this pagehttps://github.com/progit/progit2/pull/2095
das-ghttps://github.com/das-g
October 11, 2026 03:17https://github.com/progit/progit2/pull/2095#commits-pushed-191a4f1
https://github.com/das-g
replace git checkout with git restore for restoring file contentshttps://github.com/progit/progit2/pull/2095/commits/191a4f198879af3fe109c9bf66287587febe9d96
191a4f1https://github.com/progit/progit2/pull/2095/commits/191a4f198879af3fe109c9bf66287587febe9d96
https://github.com/das-g
git status now proposes git restorehttps://github.com/progit/progit2/pull/2095/commits/4c955738b98d444f742bcf85fed171e836db5274
4c95573https://github.com/progit/progit2/pull/2095/commits/4c955738b98d444f742bcf85fed171e836db5274
https://github.com/das-g
das-ghttps://github.com/das-g
force-pushedhttps://github.com/progit/progit2/compare/7095d45b161dfa24d50b3a2b2b9ac34923891e74..2246f789c2684492e783199d50a54669febe5862
7095d45https://github.com/progit/progit2/commit/7095d45b161dfa24d50b3a2b2b9ac34923891e74
2246f78https://github.com/progit/progit2/commit/2246f789c2684492e783199d50a54669febe5862
Compare https://github.com/progit/progit2/compare/7095d45b161dfa24d50b3a2b2b9ac34923891e74..2246f789c2684492e783199d50a54669febe5862
October 11, 2026 02:10https://github.com/progit/progit2/pull/2095#event-32967276118
https://github.com/das-g
das-ghttps://github.com/das-g
Oct 11, 2026https://github.com/progit/progit2/pull/2095#issuecomment-6104498798
Rewrite recommend git switch instead of git checkout #1524https://github.com/progit/progit2/issues/1524
Please reload this pagehttps://github.com/progit/progit2/pull/2095
https://github.com/das-g
das-ghttps://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-ghttps://github.com/das-g
force-pushedhttps://github.com/progit/progit2/compare/2246f789c2684492e783199d50a54669febe5862..62e8dfa53a36676ce097a13c6f7cf483bffae473
2246f78https://github.com/progit/progit2/commit/2246f789c2684492e783199d50a54669febe5862
62e8dfahttps://github.com/progit/progit2/commit/62e8dfa53a36676ce097a13c6f7cf483bffae473
Compare https://github.com/progit/progit2/compare/2246f789c2684492e783199d50a54669febe5862..62e8dfa53a36676ce097a13c6f7cf483bffae473
October 11, 2026 02:46https://github.com/progit/progit2/pull/2095#event-32968182126
das-ghttps://github.com/das-g
October 11, 2026 04:54https://github.com/progit/progit2/pull/2095#commits-pushed-c8afc00
https://github.com/das-g
replace git checkout with git switch for moving HEADhttps://github.com/progit/progit2/pull/2095/commits/c8afc00c5f0b2c2dfbe1dc3475670a618166e82a
c8afc00https://github.com/progit/progit2/pull/2095/commits/c8afc00c5f0b2c2dfbe1dc3475670a618166e82a
https://github.com/das-g
mention git switch alongside git checkout for moving HEADhttps://github.com/progit/progit2/pull/2095/commits/c24103a29792f6b7a28597f2f1cf792728c95291
c24103ahttps://github.com/progit/progit2/pull/2095/commits/c24103a29792f6b7a28597f2f1cf792728c95291
https://github.com/das-g
merge together changes favoring switch and restore over checkouthttps://github.com/progit/progit2/pull/2095/commits/dafbb22aa94d0c65570e669f43fc9b3b4e04d8e3
dafbb22https://github.com/progit/progit2/pull/2095/commits/dafbb22aa94d0c65570e669f43fc9b3b4e04d8e3
progit#1524https://github.com/progit/progit2/issues/1524
https://github.com/das-g
das-ghttps://github.com/das-g
force-pushedhttps://github.com/progit/progit2/compare/62e8dfa53a36676ce097a13c6f7cf483bffae473..dafbb22aa94d0c65570e669f43fc9b3b4e04d8e3
62e8dfahttps://github.com/progit/progit2/commit/62e8dfa53a36676ce097a13c6f7cf483bffae473
dafbb22https://github.com/progit/progit2/commit/dafbb22aa94d0c65570e669f43fc9b3b4e04d8e3
Compare https://github.com/progit/progit2/compare/62e8dfa53a36676ce097a13c6f7cf483bffae473..dafbb22aa94d0c65570e669f43fc9b3b4e04d8e3
October 11, 2026 02:54https://github.com/progit/progit2/pull/2095#event-32968385862
https://github.co/hiddenchars
https://github.com/progit/progit2/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprogit%2Fprogit2%2Fpull%2F2095
Please reload this pagehttps://github.com/progit/progit2/pull/2095
Rewrite recommend git switch instead of git checkout https://github.com/progit/progit2/issues/1524
Please reload this pagehttps://github.com/progit/progit2/pull/2095
https://github.com/das-g
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.