-
-
Notifications
You must be signed in to change notification settings - Fork 927
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
Consider replacing "checkout" with "switch" and "restore", if widely available in the future #691
Comments
Was about to open an issue on this (currently helping during a git session), seems worth considering. |
I agree, the new However, it will be some time before git 2.23 is generally available to Carpentries workshop students. The workshop template suggests downloading the latest version (currently 2.23) of git on Windows and Mac from the web, and on Linux via their OS's package manager. Ubuntu 18.04 LTS is one popular distribution of Linux which only includes git 2.17. Hopefully, the next LTS release of Ubuntu (20.04 - April 2020) will include git 2.23 or newer, but it may be some time after that before typical Linux systems used by Carpentries students have 2.23 or newer available. Does the Carpentries survey what linux distros students utilize? That information could be helpful in making the decision when to update this content. I do not plan to submit a PR at this time as it is too early to make the change. Here are the places in the lessons that can be changed once git >=2.23 is generally available.
The lesson does not teach branching, so |
GitForWindows.org is now >2.24. In case you want to add a call-out in the meantime, please feel free to cherry-pick (and adapt) the commit below. Because it's in a fork customised to render from GitLab, I'll not start a PR. |
I've been teaching git (outside of carpentries related work) and people will still show up with an older version of git even if they're given the setup instructions. but it may be a good idea to still mention One suggestion is to show |
I just ran into this today, teaching the git lesson. The lessons refer to checkout, but the output from the git commands refer to |
@zingale git restore is still experimental |
thanks for the response. I guess the bit that was confusing is that as I was sharing my screen and demonstrating it, the message that git gives on my computer says to use "restore", which contradicts what is in the lesson text. So it can be a source of confusion for participants. |
I'm adding statuses "blocked" and "Refer to Curriculum Advisory Committee" because right now the features of |
There's a disccussion on the experimental status of switch and restore on the git mailing list: It seems likely that the basic functionality which would be shown in a workshop is less likely to change than the more advanced options. |
After the material was ported to the workbench, we could add an instructor note on why In addition, we should update the output to correspond to that of the newest version (and maybe mention that it might differ, where appropriate), which refers the user to If others agree, I would prepare a patch that updates all output to that of the current Git version. |
Personal opinion: I think the time is ripe for finally retiring |
This will likely be updated with the next full lesson review, if not sooner. |
There is an error in the lesson. I'm assuming it derives from this discussion.
However, the actual console output is |
Closed by #927 |
git checkout
has been confusing for learners (especially when they later discover branching), see #169 for a first episode of this discussion.This summer 2019, git started an experimental feature to solve this issue replacing it with two commands
git restore
andgit switch
https://github.blog/2019-08-16-highlights-from-git-2-23/#experimental-alternatives-for-git-checkout
I though this was interesting to share, if people want to try the feature and/or push for its adoptions and/or start thinking about how the lessons might need to be modified.
Cheers.
The text was updated successfully, but these errors were encountered: