Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
Hi,
I'm referring the article to config git :
https://www.ptc.com/en/support/article/CS267770
I've followed the last section "Updating ThingWorx with Import of a Project from Git" to config the clean and smudge, but run git add / git status report the error below, the replace command doesn't work.
sed: no input files error: external filter 'sed -i 's/lastModifiedDate=[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9].[0-9][0-9][0-9]-[0-9][0-9]:[0-9][0-9]/lastModifiedDate=/g'' failed 4 error: external filter 'sed -i 's/lastModifiedDate=[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9].[0-9][0-9][0-9]-[0-9][0-9]:[0-9][0-9]/lastModifiedDate=/g'' failed |
could someone help on it ?
Regards,
Sean
Solved! Go to Solution.
I contacted Sean and the issue was resolved with the below suggestion:
git config filter.thingworx.clean "sed -e 's/lastModifiedDate=\".*$/lastModifiedDate=\"\"/g'"
I contacted Sean and the issue was resolved with the below suggestion:
git config filter.thingworx.clean "sed -e 's/lastModifiedDate=\".*$/lastModifiedDate=\"\"/g'"
Hi @seanccc.
Since the solution has been provided, please mark the appropriate response as the Accepted Solution for the benefit of others with the same question.
Thank you for your participation in our community!
Regards.
--Sharon