The git.jpi that I provided is a pre-release build of the plugin. If you prefer the hpi suffix, you can rename the file after you download it. If you use the Jenkins plugin manager to upload the jpi file (or renamed to hpi file), the plugin manager will create a backup of the installed plugin version before it inserts the new plugin version into the plugins directory. After the upload, restart the Jenkins process and it will use the new plugin build.
When you want to revert to the previous version (git plugin 4.2.2), open the plugin manager "Installed" page, navigate to the git plugin, and press the "Downgrade to 4.2.2" button on that row.