You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Out of the box, this script/custom command doesn't work in Windows (because an extensionless script can't be executable, I guess). I managed to fix this by these steps:
Make a cmd batch file
Create an alias
The batch file is very simple:
@echo off
py "%~dp0git-rewrite-author" %*
I saved it as C:\Program Files\Python37\Scripts\git-rewrite-author.cmd
The command for the alias was git config --global alias.rewrite-author "!C:/Program\ Files/Python37/Scripts/git-rewrite-author.cmd"
Once I figure out how to do these steps properly, inside setup.py, I'll do a pull request, but if someone has found this and wants it to work in Windows, these are the simple steps to follow.
The text was updated successfully, but these errors were encountered:
Out of the box, this script/custom command doesn't work in Windows (because an extensionless script can't be executable, I guess). I managed to fix this by these steps:
The batch file is very simple:
I saved it as
C:\Program Files\Python37\Scripts\git-rewrite-author.cmd
The command for the alias was
git config --global alias.rewrite-author "!C:/Program\ Files/Python37/Scripts/git-rewrite-author.cmd"
Once I figure out how to do these steps properly, inside setup.py, I'll do a pull request, but if someone has found this and wants it to work in Windows, these are the simple steps to follow.
The text was updated successfully, but these errors were encountered: