我尝试:
git mv a.py b.py src/
得到
致命:同一目标的多个源,source=b.py,destination=src/b.py
使用 -n 标志,像这样 git mv -n a.py b.py src/
给我:
Checking rename of 'a.py' to 'src/b.py'
Checking rename of 'b.py' to 'src/b.py'
fatal: multiple sources for the same target, source=b.py, destination=src/b.py
我是不是在做傻事?我正在使用 git 版本 1.6.6.1
最佳答案
我使用 bash 循环:
for FILE in src/*.h; do git mv $FILE include/; done
关于git - 你如何在git中移动多个文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2212857/