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 status命令显示的一些更改并保留所有路径,以便我可以在本地计算机上复制、取消归档和提交。我知道该git archive命令存在,但如何使用它git status?
git status
git archive
git-archive 旨在归档整个项目,并且仅适用于提交/标签 ID。你想做的是:
git diff > patchfile
和
patch -p1 < patchfile
在您的本地计算机上。