checkout
is one of the most confusing commands for new comers. This Stackoverflow explains how it can be replaced with switch
and restore
.
git switch
can now be used to change branches, asgit checkout <branchname>
doesgit restore
can be used to reset files to certain revisions, asgit checkout -- <path_to_file>
does
You must log in or register to comment.