Skip to content

posts/2021-07-08-git%E5%B7%A5%E7%A8%8B%E6%8B%86%E5%88%86/ #14

@utterances-bot

Description

@utterances-bot

Git工程拆分 | Less is more

摘要:Git将工程按目录拆分。

/project/ # ----/test/ # 将test目录抽成单独的工程 cd /project/test # 拆分子目录 $ git subtree split -P test -b test-new-br $ mkdir ../test-new-br $ cd ../test-new-br # 创建子工程 $ git init $ git pull ../project test-new-br # git log 可以看到历史commit 😵

😄 #

http://127.0.0.1:1313/posts/2021-07-08-git%E5%B7%A5%E7%A8%8B%E6%8B%86%E5%88%86/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions