Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add git subtree to commands #55

Open
HybridDog opened this issue Apr 10, 2017 · 1 comment
Open

Add git subtree to commands #55

HybridDog opened this issue Apr 10, 2017 · 1 comment

Comments

@HybridDog
Copy link

With git subtree you can extract a repository from another one and the other way round.
When you for example have a library from somewhere added to the repository and gradually added changes but then the original library gets some updates, you don't need to circuitously merge the updates manually. You can use git subtree to extract your version with all the related history, then rebase the extracted repository to the original one and after update the library to the extracted one with git subtree.

@memowe
Copy link
Contributor

memowe commented Apr 12, 2017

Thanks for mentioning subtree, I used to work with submodules but never saw subtree. However, I would appreciate a definition of @MarkLodato regarding what commands are important enough to be discussed here, as I don't see sub(modules|trees) in every day git use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants