git commit -m "problematic commit message
git commit --ammend
and edit the messagegit push
, or,git push --force
if you pushed the problematic commit and nothing else afterwards.
git config --global core.editor "code --wait"
git config --global core.editor "nano"
https://www.toptal.com/developers/gitignore