You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Newer versions of git promote the use of git restore in the help messages in favor of the git checkout command I believe.
git-restore is about restoring files in the working tree from either the index or another commit.
E.g:
> git status
On branch master
Your branch is ahead of 'origin/master' by 124 commits.
(use "git push" to publish your local commits)
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: nvim/.config/nvim/lua/usr/plugins/init.lua
Would be nice if you update the guide with this recent change.
The text was updated successfully, but these errors were encountered:
Also, they introduced the switch command, both helping with the overloaded checkout command. These commands were introduced in git 2.23 (Medium.com article). @mroavi maybe add switch to the issue title?
mroavi
changed the title
Include git restore in your guide
Include git restore and switch in your guide
Apr 21, 2023
mroavi
changed the title
Include git restore and switch in your guide
Include git restore and git switch in your guide
Apr 21, 2023
Newer versions of git promote the use of
git restore
in the help messages in favor of thegit checkout
command I believe.E.g:
Would be nice if you update the guide with this recent change.
The text was updated successfully, but these errors were encountered: