【发布时间】:2012-09-06 10:08:39
【问题描述】:
假设我有一个包含目录 Dir1 和 Dir2 的存储库,并且我在 branchA 中。
假设我想去掉 Dir2 的内容并在 master 分支中用 Dir2 替换它们,同时保留 Dir1 的内容。
我不希望这会那么简单,但理想情况下:
cd Dir2
git [magic that replaces current dir with the contents of master branch]
【问题讨论】:
-
查看out
标签: git