比如我想下载https://raw.githubusercontent.com/awsm-research/A3Test/main/Defects4j%20Method/Methods_Chart.txt这一文件到本地,命名为chart.txt
那么打开powershell,进入想要的目录运行
iwr -outf chart.txt https://raw.githubusercontent.com/awsm-research/A3Test/main/Defects4j%20Method/Methods_Chart.txt
P.S. 这个命令相对curl是不那么主流的,奈何curl系统不让执行。