Symptom
Publishing works correctly through the CLI or terminal, but during publishing through Git Bash, an error message is displayed to indicate that the private key content in the private key path is incorrect.

Solution
Method 1: Download and install the latest version of Git from the official website and use the Git Bash terminal that comes with the installed version for operations.
Method 2: Add a git-bash.config file under the etc directory in the current Git installation path. Add the following line to the file: MSYS=enable_pcon. Open the Git Bash terminal again and run the ohpm publish command.