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

Include git restore and git switch in the guide #3

Open
lioneltchami opened this issue Nov 30, 2023 · 0 comments
Open

Include git restore and git switch in the guide #3

lioneltchami opened this issue Nov 30, 2023 · 0 comments

Comments

@lioneltchami
Copy link
Owner

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.

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

1 participant