Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我没有尝试过,但我建议:
git mv Dir\file Dir\x-file git mv Dir\x-file dir\file
理论上,您最终会dir\file在您的存储库和工作树中。
dir\file