My issue is I have changed a file e.g.: README, added a new line ‘this for my testing line‘ and saved the file, then I issued the following commands:...
  • April 19, 2022
  • 0 Comments
I’m trying to undo all changes since my last commit. I tried git reset --hard and git reset --hard HEAD after viewing this post. I responds with head is...
  • April 15, 2022
  • 0 Comments
Sometimes git suggests git rm --cached to unstage a file, sometimes git reset HEAD file. When should I use which? EDIT: D:\code\gt2>git init Initialized empty Git repository in D:/code/gt2/.git/...
  • April 13, 2022
  • 0 Comments
Is it possible to undo the changes caused by the following command? If so, how? git reset --hard HEAD~1 1 19 Pat Notz is correct. You can get the...
  • April 13, 2022
  • 0 Comments