'Git bug while trying to add or commit
Suddenly encountered a strange error
error: BUG: switch 'n' (--dry-run) invalid short name
Everything was working fine for me yesterday. Today, all I did was start a separate folder for configs and utilities. And when I tried to commit I got this error. Also now git on other projects gives the same error. I have no idea what it is. Googling hasn't led me to an answer yet.
I tried to commit from git bash and PyCharm. I also tried deleting this entire project altogether, but other projects still give this error. I had absolutely nothing to do with the git itself, and all I did was only change the code in a few files, and also just created a folder where I put a few old files
I do not know what else I can describe, but if something is needed, I will edit this post
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
