If you donβt need to change the commit history, you can
git checkout HEAD~ config
where HEAD ~ means the last commit there config should be intact. (If not, check HEAD ~ 2, which means the last last commit. man gitrevisions to complete.)
Then config should return, execute
git commit -m 'config issue fixed'
.
source share