add precaution
Source Link
thybzi
  • 1.1k
  • 11
  • 15

A lifehack for such situation I just invented and tried (that works perfectly):

git add .
git reset --hard HEAD

Beware! Be sure to commit any needed changes (even in non-untracked files) before performing this.

A lifehack for such situation I just invented and tried (that works perfectly):

git add .
git reset --hard HEAD

A lifehack for such situation I just invented and tried (that works perfectly):

git add .
git reset --hard HEAD

Beware! Be sure to commit any needed changes (even in non-untracked files) before performing this.

Source Link
thybzi
  • 1.1k
  • 11
  • 15

A lifehack for such situation I just invented and tried (that works perfectly):

git add .
git reset --hard HEAD