Skip to content

Instantly share code, notes, and snippets.

View TheCrether's full-sized avatar
💯
workin'

Denis Imeri TheCrether

💯
workin'
View GitHub Profile
@TheCrether
TheCrether / subtree-workflow.txt
Created January 4, 2021 14:56 — forked from dwilliamson/gist:e9b1ba3c684162c5a931
Workflow for using git subtree on Windows
To include a library as a subtree, follow these steps:
1. Add the project as a remote
git remote add <remote-name> <source-repo>
2. Fetch the remote
git fetch <remote-name>
3. Add the project
git subtree add --prefix "path/to/project" <remote-name> <remote-branch-name> --squash