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

git reset #3

Open
fahdrahali opened this issue Feb 2, 2021 · 1 comment
Open

git reset #3

fahdrahali opened this issue Feb 2, 2021 · 1 comment

Comments

@fahdrahali
Copy link

this command didn't work for me
$ git reset HEAD filename
but that did work
$ git reset filename

@ldo
Copy link

ldo commented Jan 6, 2023

If you want to checkout a particular version of a particular file, the command is

git checkout -f «committish» «path»

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