Rename file for all commits in git repository

前端 未结 2 449
小鲜肉
小鲜肉 2020-12-30 01:07

I want to rename a file for all the commits in git repository, here\'s what I have tried:

git filter-branch --index-filter \'git mv -k  

        
2条回答
  •  误落风尘
    2020-12-30 01:21

    I finally solved my original problem by using:

    git filter-branch --tree-filter '
    if [ -f  ]; then
      mv  
    fi' --force HEAD
    

提交回复
热议问题