Worknot 20241113 1

2024-11-13 工作雜記 git

剛剛 commit 想要反悔

git reset master^
git reset --hard HEAD

處理結果

 ~/Documents/gitContent/data/tgroup/test on master ⇡3 ·······································
❯  git reset master^
Unstaged changes after reset:
M       build.gradle
M       grails-app/services/ex/ExampleService.groovy

 ~/Documents/gitContent/data/tgroup/test on master !2 ·······································
❯ git reset --hard HEAD
HEAD is now at 7d0988b Merge branch 'develop' of http://127.0.0.1/tgroup/test