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

Ban checkout and use "modern" commands switch/restore #1095

Open
kaddkaka opened this issue Aug 31, 2023 · 3 comments
Open

Ban checkout and use "modern" commands switch/restore #1095

kaddkaka opened this issue Aug 31, 2023 · 3 comments

Comments

@kaddkaka
Copy link

Has there been any work to replace checkout with the more "direct" commands switch and checkout? I hesitate to give this learning material to new git users at work because it seems to use checkout.

@pcottle
Copy link
Owner

pcottle commented Aug 31, 2023

git switch is certainly supported in local sandbox, but I haven't moved the learning materials over yet :/ I feel like theres still mixed consensus on which command to use in industry, and I think git switch is still labeled as an experimental command?

I could add a lesson on switch, but if I don't switch over all of the commands in all the lessons, people might walk away preferring checkout

@kaddkaka
Copy link
Author

Oh right! On git 2.42.0 man git switch says "THIS COMMAND IS EXPERIMENTAL. THE BEHAVIOR MAY CHANGE."

So it might be good to wait with the porting for that reason. I just forgot about it since I stopped using checkout completely since over a year ago.

Anyway, thanks for a really nice interactive learning tool! :)

@pcottle
Copy link
Owner

pcottle commented Aug 31, 2023

Yep, it's easy to forget it's experimental. It's like when Google had their products in Beta for years!

I'll probably switch the lessons when they move it out of experimental.

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

No branches or pull requests

2 participants