andreika-git / hellen-one

Hellen-One Hardware Platform for rusEFI Engine Management System
21 stars 28 forks source link

unintended *.kicad_pro push #351

Closed rusefillc closed 9 months ago

rusefillc commented 9 months ago

https://github.com/rusefi/alphax-4chan/commit/8476166bac3353b74402ee0bd9314262e6b2d569 should not have touched alphax_4ch.kicad_pro

We seem to have provisions to reset https://github.com/andreika-git/hellen-one/commit/4f721588cbf1433008ad28f0c210a3a5f508b45e

git reset HEAD *.kicad_pro
rusefillc commented 9 months ago

do they not support wildcard?! or was it only older versions? https://stackoverflow.com/questions/4228100/git-i-want-to-unstage-all-files-matching-a-certain-pattern

rusefillc commented 9 months ago

@chuckwagoncomputing wow

rusefi@DESKTOP-57S88S8:~/rusefi$ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   README.md
no changes added to commit (use "git add" and/or "git commit -a")
rusefi@DESKTOP-57S88S8:~/rusefi$ git reset HEAD *.md
Unstaged changes after reset:
M       README.md
rusefi@DESKTOP-57S88S8:~/rusefi$ git reset HEAD *.md
Unstaged changes after reset:
M       README.md
rusefillc commented 9 months ago

@chuckwagoncomputing wow

rusefi@DESKTOP-57S88S8:~/rusefi$ git restore *md
rusefi@DESKTOP-57S88S8:~/rusefi$ git status
On branch master
Your branch is up to date with 'origin/master'.
rusefillc commented 9 months ago

revert instead of reset has fixed the issue