git-subtree

Git subtree - subtree up-to-date but can't push

江枫思渺然 提交于 2019-11-27 05:58:15
I am using Git subtree with a couple of projects that I am working on, in order to share some base code between them. The base code gets updated often, and the upgrades can happen in anyone of the projects, with all of them getting updated, eventually. I have ran into a problem where git reports that my subtree is up to date, but pushing gets rejected. For example: #! git subtree pull --prefix=public/shared project-shared master From github.com:**** * branch master -> FETCH_HEAD Already up-to-date. If I push, I should get a message that there is nothing to push... Right? RIGHT? :( #! git

Alternatives to Git Submodules?

自闭症网瘾萝莉.ら 提交于 2019-11-27 03:00:17
I feel that using Git submodules is somehow troublesome for my development workflow. I've heard about Git subtree and Gitslave. Are there more tools out there for multiple repository projects and how do they compare ? Can these tools run on Windows ? Which is best for you depends on your needs, desires, and workflow. They are in some senses semi-isomorphic, it is just some are a lot easier to use than others for specific tasks. gitslave is useful when you control and develop on the subprojects at more of less the same time as the superproject, and furthermore when you typically want to tag,

When to use git subtree?

ⅰ亾dé卋堺 提交于 2019-11-27 00:13:04
问题 What problem does git subtree solve? When and why should I use that feature? I've read that it is used for repository separation. But why would I not just create two independent repositories instead of sticking two unrelated ones into one? This GitHub tutorial explains how to perform Git subtree merges. I kind of know how to use it, but not when (use cases) and why , and how it relates to git submodule. I'd use submodules when I have a dependency on another project or library. 回答1: You should

git subtree: possible to change subtree branch/path in a forked repository?

微笑、不失礼 提交于 2019-11-26 19:52:35
问题 In a repository A the folder sub is included as git subtree of the repository S - pointing to master branch. I have forked repository A into F . Now I want to do one of the following in F : change sub to use a different branch of S (ie develop branch) or: change sub to use a different repository altogether Is either one of these possible, and if so, how? Will there be any side effects I should know of? And how can I make sure my subtree change won't be updated in repository A when I merge my

Forking a sub directory of a repository on GitHub and making it part of my own repo

人盡茶涼 提交于 2019-11-26 19:15:27
问题 Apologies, I am very new to Git and GitHub, I've read through a few things but I'm not sure if what I'm trying to do is entirely possible. Basically I want to fork the Confluence Skin used on XBMC and modify various elements located here: https://github.com/xbmc/xbmc/tree/master/addons/skin.confluence However I don't want to fork the entire XBMC repository, so a simple fork action won't do. Here are my general requirements: I would like to take the contents of the skin.confluence folder and

Differences between git submodule and subtree

假如想象 提交于 2019-11-26 12:38:51
What are the conceptual differences between using git submodule and subtree? What are the typical scenarios for each? VonC submodule is a better fit for component-based development , where your main project depends on a fixed version of another component (repo). You keep only references in your parent repo ( gitlinks , special entries in the index ) What if I want the links to always point to the HEAD of the external repo? You can make a submodule to follow the HEAD of a branch of a submodule remote repo, with: o git submodule add -b <branch> <repository> [<path>] . (to specify a branch to

Git subtree - subtree up-to-date but can&#39;t push

妖精的绣舞 提交于 2019-11-26 11:47:57
问题 I am using Git subtree with a couple of projects that I am working on, in order to share some base code between them. The base code gets updated often, and the upgrades can happen in anyone of the projects, with all of them getting updated, eventually. I have ran into a problem where git reports that my subtree is up to date, but pushing gets rejected. For example: #! git subtree pull --prefix=public/shared project-shared master From github.com:**** * branch master -> FETCH_HEAD Already up-to

Alternatives to Git Submodules?

二次信任 提交于 2019-11-26 10:19:25
问题 I feel that using Git submodules is somehow troublesome for my development workflow. I\'ve heard about Git subtree and Gitslave. Are there more tools out there for multiple repository projects and how do they compare ? Can these tools run on Windows ? 回答1: Which is best for you depends on your needs, desires, and workflow. They are in some senses semi-isomorphic, it is just some are a lot easier to use than others for specific tasks. gitslave is useful when you control and develop on the

Merge two Git repositories without breaking file history

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 05:34:05
I need to merge two Git repositories into a brand new, third repository. I've found many descriptions of how to do this using a subtree merge (for example Jakub Narębski's answer on How do you merge two Git repositories? ) and following those instructions mostly works, except that when I commit the subtree merge all of the files from the old repositories are recorded as new added files. I can see the commit history from the old repositories when I do git log , but if I do git log <file> it shows only one commit for that file - the subtree merge. Judging from the comments on the above answer, I

Differences between git submodule and subtree

一个人想着一个人 提交于 2019-11-26 03:31:47
问题 What are the conceptual differences between using git submodule and subtree? What are the typical scenarios for each? 回答1: submodule is a better fit for component-based development, where your main project depends on a fixed version of another component (repo). You keep only references in your parent repo ( gitlinks , special entries in the index) What if I want the links to always point to the HEAD of the external repo? You can make a submodule to follow the HEAD of a branch of a submodule