git-subtree

Package Manager vs. Git Submodule/Subtree

一世执手 提交于 2020-06-24 06:22:31
问题 Are there any reasons to use a package manager rather than git submodules/subtrees, or vice versa? The git solutions seem to be a lot more hassle than a simple package manager. Assume that the space-saving benefit of git submodules is not important. Update: Someone added a C++ tag to this question, but I have removed it since. This question did not specifically pertain to C++. More general answers than the accepted answer are welcome. 回答1: The git solutions seem to be a lot more hassle than a

Git: is there a way to auto push a subtree?

北慕城南 提交于 2020-06-14 07:37:06
问题 I have a big private repository which is maintained on a local network. I'd like to automatically push a subtree of that repository outside of that network. I need it to be simple: *Task* someone pushes to local remote repository --> a subtree is automatically pushed to some other repository I am not sure if this could be achieved with a server side hook because AFAIK there is no such thing as pushing subtrees from bare remotes. I came up with two ideas: I could clone the remote on the server

Why does Git subtree always process every commit?

与世无争的帅哥 提交于 2020-02-26 08:12:36
问题 I am using Git subtree to share a subfolder of my source code between projects. This is working alright, but every time I perform a git subtree push, the terminal shows an ever-growing list of commits: git subtree push --prefix=public/js/engine engine-remote master --squash git push using: engine-remote master -n 1/ 1193 (0) -n 2/ 1193 (1) -n 3/ 1193 (2) ... -n 1193/ 1193 (1152) Counting objects: 176, done. ... Why is this and can I configure something differently to prevent this? I

How do I stop ignoring a file pattern in a subtree subdirectory?

梦想与她 提交于 2020-02-24 12:55:19
问题 I am using Git for a Unity project of my own (I am the only developer, so I can use destructive commands) . As Unity developers may know, Unity creates ".meta" files for everything under the "Assets" folder, which is the main folder of the project. And these files "must" also be tracked along with original files to keep integrity of the project. Here is the .gitignore file of the project repository: # Unity Project Folder /ExampleProjectName/[Ll]ibrary/ /ExampleProjectName/[Tt]emp/

How can I add a specific folder when using git subtree?

北城余情 提交于 2020-01-31 10:31:27
问题 I have a complicated Ionic project I'm developing. Many of the components and providers I'm developing are generic and can be used in other projects my company is doing. This is common in software development. This is the Git workflow I have come up with (this graph shows branches): my-company-library-repo ---- |_ component 1 feature branch |_ company component 1 feature branch testbed |_ component 2 feature branch The final component code (just a .ts or .js file) developed in the testbed is

How can I add a specific folder when using git subtree?

泄露秘密 提交于 2020-01-31 10:30:45
问题 I have a complicated Ionic project I'm developing. Many of the components and providers I'm developing are generic and can be used in other projects my company is doing. This is common in software development. This is the Git workflow I have come up with (this graph shows branches): my-company-library-repo ---- |_ component 1 feature branch |_ company component 1 feature branch testbed |_ component 2 feature branch The final component code (just a .ts or .js file) developed in the testbed is

How to do git sub modules and why to use git sub module

狂风中的少年 提交于 2020-01-24 03:12:27
问题 I have found an github project and it uses git submodules. What is the usage of git sub modules ? How to create git sub modules ? How they differ it from sub-tree ? Thanks 回答1: Git Submodule: A submodule in a git repository is like a sub-directory which is really a separate git repository in its own right. This is a useful feature when you have a project in git which depends on a particular versions of other projects Git Subtree: Git subtree allows you to insert any repository as a sub