Configure depth of git submodule
I realize you can set the depth of a submodule manually when updating it, see here, but is it possible to set that automatically, say as an option in the gitconfig? This way I could set it so when updating a submodule it only ever brings down a revision history of depth 2?
I have this simple hook on /hooks/post-update inside a bare repository: #!/bin/sh git-update-server-info GIT_WORK_TREE=/home/user/apps/application-site/dev git checkout -f develop GIT_WORK_TREE=/home/
How do I remove a Git submodule? By the way, is there a reason I can't simply do git submodule rm whatever ?
Is there a way, short of actually checking out the parent commit, to determine a submodule's SHA-1 commit ID based on a commit ID in the parent clone? I know I can find the currently associated SHA-1
I've create a submodule in my repository root in a specific folder. I can see the submodule is well registered in .git/.gitmodules and in .gitmodules, but I can't get it working. I can't see it if I m
Using git 1.8.1. I have upstream and local repo for git project.It has one submodule (hash A). Then I branch it out locally to branch feature (and have hash A submodule). Pull some changes and sub
This question already has an answer here: Git commit to common submodule (master branch) 1 answer I have, in my naivety, set up a git submodule and treated it like a Subversion external - i.e.
I am trying to clone a submodule for my drupal installation. I run the following command: git submodule add http://git.drupal.org/project/token.git /sites/all/modules/token This throws this error: Th
I'm working on a project in one git repository (A) that is including another git repository (B), which in turn includes a third git repository (C). In A, I added B via: git submodule add https://githu
Judging just from the number of results for git submodule here on SO alone, this is clearly a commonly asked and easily confused topic, so I will try to be as precise as possible. Forgetting everyth
I am using a git submodule in a very usual way. The way how people typically update a submodule is by checking it out, pulling something in the submodule and then commiting outside. Now, I typically d
I have decided to switch from SVN to git for my app repository. My repo structure is like this: ~/AndroidStudioProjects/MyMine $ tree -L 1 . ├── ActionBarSherlock ├── Android-Universal-Image-Loader ├─
I've two or more projects (let's call them ProjectFoo and ProjectBar) having some common code that I put in a submodule. My understanding is that if I commit changes to a submodule from within Project
This may or may not be a very dumb idea, but how can you configure a git repository such that any pull that is done automatically fetches the tags from the other repository as well? According to the d
I'm sure something is wrong with my git directory. I set up my submodule using git submodule add ssh://someUrl/confusionutil.git confusionUtil and this all works well. Seems like the submodule is act
On a fresh git repo, after adding a submodule and changing to the submodule directory most git commands fail when run within the submodule with the error: fatal: index file open failed: Not a director
How should I set up a git submodule to prevent a detached head? When I check out my project, it has a submodule and the submodule also has a submodule. Now I want someone else to be able to checkout t
I have a git repo and I want to add a submodule to it. Problem is, the submodule exists as a folder inside another repo. Can I add only that folder as a submodule?
I'm working on storing my dot files in Git, and I've run into a bit of a snag. I want to include a sparse checkout of part of the Git repository (contrib/completion/*.bash) as a submodule. I can get t
I have a project with lots of submodules for some specific reason. I just want to know which branches exist for each submodule. I know that I could initialize each submodule with git submodule update
I am fairly new to Git and trying my best to find some documentation on this problem to no avail. Here's my command: MyUser@MyPlace /e/SourceControl/EventStore (master) $ git submodule add https://git
guys, I just used submodule to organize some Git repos, here's the address: repos I want to move all the submodule into a new directory called repos, for examples, jquery -> repos/jquery. I change
I have a repository with a submodule. For me, this submodule is read-only, so I'm using submodule.Module.ignore=dirty. This works fine for 'git status', but when I commit, the whole submodule is scann
The following 2 folders on my local computer contain shared libraries/helpers: /shared/libraries/ /shared/helpers/ The libraries above should be submodules in my backend... /backend/application/lib
Let's say you have a parent project and submodule. There is a user who has read/write permission to the parent project but only read permission for the submodule. How do you stop the user from making
I have moved subdirectory in separate repository and then included it as submodule. Now I want to rebase another branch on top of that change. israfel:proj almad$ git rebase -i origin/master error: co
I'm trying to configure the repository: https://github.com/javpaw/game-of-life into a job in jenkins using git plugin, but when I put the address of the repository: firstname.lastname@example.org:javpaw/game-of-life.
I have a commit on master, hash 6877146, which updates a submodule. $ git show 6877146 commit 6877146f1781bfbd4ec3ae2a27121a606f5f688e Author: [snip] Date: Wed Feb 22 16:10:20 2012 +0000 updating pota
This question already has an answer here: Git Alias - Multiple Commands and Parameters 7 answers I want create more than one command in one line. Example: git fetch && git pull Is poss
I have one GIT repository: my_git_repo and I added a submodule: my_git_repo\submodule That is OK, now: Is possible to add files (and change ?) to submodule but keep the tracking in the parent my_git_
After cloning a remote repository it does not show any remote branch by -a option. What could be the problem? How to debug it? In this snippet two of the remote branches are not shown: $ git clone --
I have a super-module Research that includes a submodule Simulator. When I clone Simulator repository, and do git log, I get this ~/Simulator$ git log commit abcd... Date: Feb 1....... ........ W
I'm working a project under git revision control that is not my project, but I have r/w access to it. So, I can change what is under revision control in regards to the .gitmodules file, but risk commi
I am trying out basic submodule functionality in Git Extensions. I have a repository called sub and a repository called super; sub is a submodule of super. When I open the super repository in Git
We use GIT to manage our project. Each project has a core (like a framework from who we'll built the project) So each project has at least 2 remotes branches: 1 repository for that core framework.
When I run these steps: mkdir dev cd dev git clone git://github.com/facebook/hhvm.git cd hhvm git submodule init export CMAKE_PREFIX_PATH=`pwd`/.. export HPHP_HOME=`pwd` cd .. url: https://github.com
When cloning submodules from a gitosis repo, I got all files except for the .git directory. .git directory is missing. Instead, I got a single .git file. I use git submodule init and git submodule upd
I recently wanted to adopt submodules from GIT with my Android projects but stumbled into some problems. Backstory I have multiple projects but many use the same external library (Android library-proj
On my system I don't have the user.email git configuration value set at the global level, on purpose. Instead, I configure it individually in each sandbox. This is because I need to use different e-ma
I currently have Fedora 17 inside a VM on my win7 computer. I want to configure the VM to manage my projects with git. I use eclipse helios on win7 with the egit plugin with my projects currently resi
I need to clone a repository from Github and am using Git Shell provided with the Github for Windows package. The repository contains submodules and I don't know why, (first time) I cannot use submodu
a few months ago i configured a git with an svn repository. Until now i only used the svn repository to keep up-to-date with the supplied application on it. But now i also want to commit stuff back. T
When I run git submodule init, I get the following errors. No submodule mapping found in .gitmodules for path 'xxx' I searched for a .gitmodules file and I cannot find it anywhere. I have read this mo
I have a projectx which includes a git submodule /projectx/foo/bar/submodule The submodule repository is itself a git-svn repo which tracks an svn repository. In the standalone submodule repo, I've
I have a git submodule (RestKit) which I have added to my repo. I accidentally changed some files in there and I'd like to go back to the source version. In order to do that, I tried to run Mac:app-i
If you add a submodule in git, afaik it points to a certain commit in that submodule. Is there any way to see which commit it's actually pointing at? Without actually checking out the submodule.
i have a project where i include 2 submodules from git. Both projects have nuget package restore enabled, the parent project too. The package folder in the two included submodules is not checked in,
user$ sudo git submodule update fatal: reference is not a tree: a094dcfeeb43fcd62a9e466156e05e7581026f33 Unable to checkout 'a094dcfeeb43fcd62a9e466156e05e7581026f33' in submodule path 'client/src/uti
I'm wondering how to do git clone --depth HEAD with BZR, because I don't need the whole branch history.
We are using submodules and we are new to git. We often see merge conflicts for the submodules themselves, no files are conflicted, just the submodule. There are multiple versions listed in the output
My project repo includes Wordpress as a git submodule. When deploying via Capistrano 3, the submodule directory is barren. project --wordpress --images I am using git and :deploy_via, :remote_cache H