我删除了一些似乎已在 Mercurial 中跟踪的本地文件,所以我得到:
ga1009@ga1009-dell:~/PhD/equilibrium$ hg status -q
! equilibrium/Computations/Matlab_ga/CVaR_vs_loan.p~
! equilibrium/Computations/Matlab_ga/CVaR_vs_noMargin.p~
! equilibrium/Computations/Matlab_ga/CVaR_vs_xi.p~
! equilibrium/Computations/Matlab_ga/defaults_loan3.p~
! equilibrium/Computations/Matlab_ga/defaults_loan6.p~
! equilibrium/Computations/Matlab_ga/loansBeforeDefault_loan10.p~
! equilibrium/Computations/Matlab_ga/loansBeforeDefault_loan3.p~
! equilibrium/Computations/Matlab_ga/pnl_loan6.p~
! equilibrium/Computations/Matlab_ga/pnl_loan6_alt.p~
! equilibrium/Computations/Matlab_ga/simulation.p~
! equilibrium/Computations/Matlab_ga/values_loan10.p~
! equilibrium/Computations/Matlab_ga/values_loan3.p~
! equilibrium/Computations/Vidur_120330/Chebyshev2value.m
! equilibrium/Computations/Vidur_120330/t=12.fig
! equilibrium/Computations/Vidur_120330/t=2.fig
! equilibrium/Computations/Vidur_120330/t=25.fig
有没有办法在不向存储库添加任何内容的情况下删除这些?我有很多不应该添加的文件,所以使用hg addremove
不是一个选项。我尝试对hg forget
这些文件中的每一个进行处理,但我得到equilibrium/Computations/Vidur_120330/t=25.fig: No such file or directory
了——考虑到这些文件已被删除,这并不奇怪。任何想法如何解决它?