Nested git repositories without remotes (a.k.a. git submodule without remotes)
I have a project of which I am interested in breaking out portions as open-source. I've set up a "main" git repository (say, in a directory "main") and sub-repositories in "main/one", "main/two", "main/three". I thought that by going into "main" and doing
git add one
git add two
git add three
(note the lack of trailing slashes), I'd set up submodules with the sub-repositories and be good to go.
However, as noted in Git - how to track untracked content?, this only creates gitlinks and not real submodules.
Unfortunately, that answer doesn't help, as it assumes that there is a "master" repository somewhere else for "main/one", "main/two", and "main/three". I'd like these sub-repo's to be the master repositories. I'm considering fake submodules (as per Git fake submodules), but that's not a particularly ideal situation for cloning.
Any other suggestions out there?
I have a git repository that is tracking several remote branches: $ git branch -a * master remotes/git-svn remotes/origin/master remotes/trunk When I try to setup a default one I get the following er
I'd like to get a git log for the repository and all submodules. The manpage says that git log --submodule should be used but this doesn't work for me. ------- Edit ------- As an example - what I run:
There are empty folders in myrepo/.git/refs/remotes. What is their purpose? They seem to map to past used remote names. If so, what would be the affect of deleting them? If I do not delete them, what
Is it possible to create a submodule that does not link to a repository directly, but to a directory inside it? For example, let fw.git be a framework repository, with these dirs: |fw.git \---|test |c
Both of my remotes are the same location So how is it possible that they're at different commits?
This question already has an answer here: Why is “origin/HEAD” shown when running “git branch -r”? 7 answers >git branch -a * master remotes/origin/HEAD -> origin/master remotes/origin/ma
After the last merge to the master branch of my Git repository I have lost the ability to clone repository. Cloning into test-repository... remote: Counting objects: 126084, done. remote: Compressing
If I have a main project that is version controlled. I then add a remote for a third party plugin git remote add myplugin <url> I can then do git pull myplugin master and it just pulls in the ch
I have a local git repo that I created from an svn repo: $ git svn clone -s svn:... I then created a backup remote and pushed everything to it: $ git remote add backup git@myhost:mybackup.git $ git p
I have a project where I added a git submodule to a fork of a repo that is out of date. Rather than pointing to that fork, I decided to change the submodule reference to point to the original repo ins
I have moved an SVN repo to Git and probably due to a number of clonings, I'm now left with a bunch of branches that look like BranchA origin/BranchA remotes/BranchA remotes/origin/BranchA remotes/ori
Is there a way to add a subversion repository as a git submodule in my git repository? Something like: git-svn submodule add https://svn.foo.com/svn/proj --stdlayout svn-project Where https://svn.foo.
I am trying to add a git submodule to my project, but git keep telling me $ git submodule fatal: cannot describe 'dd650e8bb4762a8a7f69a6412b4765c9bb108778' What means fatal: cannot describe and how
EGit loses remote configuration. I have such Remotes configuration (2 remotes): But in the morning I get again (origin point to /PaulVI): git remote output: C:\Users\weibl\Documents\GitHub\nodeclips
I am trying to clone a git repo that contains submodules onto a Namecheap shared server using SSH. The 'git clone' command worked fine, except that one of my submodules failed. When I try to run 'git
If I modify a submodule, can I push the commit back to the submodule origin, or would that require a clone? If clone, can I store a clone inside another repository?
Is there a way on GIT to just do a git push and it automatically send to origin master without specify that? Just curious...
I'm not clear on what the following means (from git submodule update docs): ...will make the submodules HEAD be detached, unless --rebase or --merge is specified... How does --rebase/--merge chang
One creates a new git branch: git checkout -b test and pushed it to origin: git push origin -u test and listing all the branches now I get: master * test remotes/origin/HEAD -> origin/master remo
I am having trouble understanding the output of git submodule status. I think it's because I don't use tags very often. I added a submodule to a Git repository (you can replicate this locally really e
I am trying to use git p4 on my Linux computer. But there seems to be a problem with git-p4 for some reason. When I run the git p4 command I get: fatal: git was built without support for git-p4 (NO_PY
If I add a submodule that does not currently exist, no submodule information is added to .git/config. $ mkdir testing $ cd testing $ git init $ git submodule add email@example.com:submodule.git $ cat .gi
I am currently trying to clone some of my vim settings from my git repo, and the repo mostly contains submodules of other hosted projects. However, when I try to update all of my submodules, I get the
Is there some way to upgrade Laravel 4 beta framework's base (or skeleton) without using git clone?
Using git branch --set-upstream resulted in this message: The --set-upstream flag is deprecated and will be removed. Consider using --track or --set-upstream-to Without thinking about it too much and
I know that it would be easier to use git push origin master, but if I do: git push origin .git/refs/heads/master:.git/refs/remotes/origin/master I get: fatal: remote part of refspec is not a valid
I've added a submodule in my main git folder tree and haven't changed anything but it's showing up modified. What do I do about this? $ git status # On branch master # Changed but not updated: # (use
I am adding a submodule to my project which contains another git repo. To get the module I ran: git submodule add git://github.com/biakaveron/debug-toolbar.git modules/debug-toolbar Then ran: git sub
My source tree contains several directories which are using git source control and I need to tarball the whole tree excluding any references to the git metadata or custom log files. I thought I'd have
Does Git have anything akin to git remote prune --all to automatically prune all remotes in a repository? Is there anything more built-in (or elegant) than this bash loop I've used? $ for REMOTE in `g
My git repo's master branch structure is as follows /demo index.html style.css reset.css jquery.dimlights.js jquery.dimlights.css jquery.dimlights.min.js jquery.dimlights.min.css readme.md However i
I initialized a Git repository with: git svn init https://path/to/proj Then I updated my .git/config file to specify the locations of the branches/tags: fetch = cascade/trunk:refs/remotes/trunk branch
I have a Git repository that includes a submodule. This repository has various build configurations in TeamCity that are dependent on code on the submodule. Is there a way with TeamCity to detect tha
I am tracking a remote repository, i.e. I have refs/remotes/joe/master. I know would like to get joe's changes as soon as possible into my repository. I don't want to use fetch, because I might not be
I have the following setup svn repository application | |-branches | | | |-develop-svn | |-trunk local git repository master | |-develop master tracks remotes/trunk develop tracks remotes/develop-sv
I have a git repository consist of several git submodules. If I want to update submodules of working repository, it involve: cd git pull origin master cd .. git add git commit -m Updated submodule
I have a local git repository with two remotes ('origin' is for internal development, and 'other' is for an external contractor to use). The master branch in my local repository tracks the master in '
I have some git repositories accessed remotely through SSH and I want to make some of them read-only to prevent more pushes. Some people have remotes pointing to these repositories. These bare reposit
So let's say there are three developers: Alice, Bob and Cecil. They decide to use Git without a central repo. They all setup remotes to each other, so that: * Alice has remotes/bob/master * Alice has
i've got a real fun git layout for my android project... everything has been working beautifully. the structure is essentially 1 master project with a couple inner submodules. one of the inner submodu
Do TFS integrated Scheduled Backups include git repositories? I searched some, but couldn't find where they might be stored on the server.
Background Using Git 126.96.36.199 on Linux. The repository looks as follows: master book The submodule was created as follows: $ cd /path/to/master $ git submodule add https://firstname.lastname@example.org/user/repo
$ git svn clone -s http://a_repo local_dir ( by default this brings me r1 ) to hdd Initialized empty Git repository in d:/Temp/local_dir/.git/ r1 = some_SHA (refs/remotes/trunk) $ cd local_dir $ git s
I'm used to running git pull and other commands from within a branch I'm working on. But I have set up a development server that several people work on, so I don't want to have to switch branches when
I've always been puzzled by this: $ git submodule You need to run this command from the toplevel of the working tree. Why do I need to run it from the top level directory? Is it a technical reason, o
For example, you can do a git remote --verbose and git will show all the remotes you have on your project, git branch will show all the branches and signal the current branch, but how to list all subt
As an example: In the kernel source code, it has a lot of tags. I can diff them, such as: git diff v2.6.37-rc3 v2.6.38-rc4 and I get the right output. Now I copy .git directory to another place, and
I have an iOS project hosted on Bitbucket which uses MapBox-iOS-sdk which I incorporated as a git submodule. The commit I track is on a develop branch, not the release branch. Say, some times later wh
Let's assume you are merging one branch in Git to another one(no fast forward of course). And you don't have conflicts, so the merge should be successful, without interruptions. But by some reasons yo
I am trying to deploy a nodejs application to Amazon EC2 using Amazon Elastic Beanstalk console. We have a custom repository manager and are not using Git. Is Git a prerequisite for using Beanstalk? O