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

refactor(git): replace checkout by newer switch/restore #84

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Lenormju
Copy link

@Lenormju Lenormju commented Oct 8, 2024

Since 2023, Git recommends using git switch and git restore over git checkout because it makes clearer what they do, and they have safer defaults.
See : https://github.blog/open-source/git/highlights-from-git-2-23/#experimental-alternatives-for-git-checkout
I offer to update your cheatsheet with these recommendations.

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

Successfully merging this pull request may close these issues.

1 participant