Tag: git submodules

Making files in submodule read-only

I’m a git newbie suffering from prior svn experience. Many of my projects are using code from my own libraries, so naturally I want some “externals-like” functionality from git. I’m currently trying to use submodules. But submodules (as far as I understand) can provide a lot of pain if you use them in the wrong […]

Checking out only a subdirectory of another repo with git-submodule

I need to only add a part (a directory) of another project within my “superproject”, so I’d like to know if it is possible with git-submodule to only add a certain directory from another repository to my project? (I’m using git for the deployment as well, so I do not want to stuff my project […]

Completely independent Git project within another project using only gitignore

Is it possible to work with two independent git projects, one within another in the directory tree and separate them using only gitignore (without submodules or subtrees)? Here is the folder structure: repo_a <– repository A folder /.git /folder_1 /folder_2 /repo_b <– repository B folder (to be ignored by repository A) /.git /folder_3 /folder_4

Impossible to checkout Git code for Windows 8 via TortoiseGit or msysGit. Works fine with Ubuntu Git. “Submodules error”

My Setup: OS: Windows 8 x64 I use these VCS: msysgit https://msysgit.github.io/ and TortoiseGit: https://tortoisegit.org/ Server: Zend Server (LAMP) for Windows So Git Checked-out around 60 MiB, the rest was Vendors stuff. So it just stuck. And did not checked out whole 300 MB Erorr reported by “msysgit” (Windows Git+): “C:\Program Files (x86)\Git\bin\git.exe” clone -v […]

What is git solution for submodules that need patching?

I expect this problem is common, but for the life of me I can’t seem to find a good solution: Project Foo requires third-party project Bar’s source (which I have no control over) Project Foo adds Bar as a submodule, because that’s the Git solution to this problem It turns out Bar requires a handful […]

How to get Vim Ctrl-P plugin to index files inside a git submodule

If I run Ctrl-P natively out of the box, it works 100% as I desire, except that with the size of the codebase I work with, it takes a very long time to index directories. To make Ctrl-P cope with the project sizes I’m dealing with, I’m using the following (fairly popular) user_command setting in […]

Git :: Split multi-module project into 2 modules and keep history

Currently we do have one large project, constisting of modules A,B,C,D,E. These modules are located within same project repository on github, but in different folders – each module in it’s own folder. Project is managed bt Maven, if that matters. Recently we decided to split the project in two different instances – P1 and P2, […]

Pushing local repo to remote does not push submodule files using GIT

I’m new to GIT and am struggling with it. I’ve got a website that is stored in a repository. The website requires a theme folder that is setup as a separate repository. I’ve used the git submodule add command successfully to add the theme repository to my website. So now I have a website repro […]

git init in a git subdirectory

I have a git repo which has some subdirectories: ~/src ~/src/.git ~/src/mystuff ~/src/otherstuff Now I want to share otherstuff with a friend, I was planning to do this with bitbucket. They should be able to clone it and push changes in otherstuff but I don’t want them to be able to access src, mystuff (nor […]

Enforce –recurse-submodules=on-demand for all clones of a repo

Given a Git repository with several submodules. Is there a way to enforce all clients (read clones) of that repository to use the –recurse-submodules=on-demand option on pushing commits? I don’t want to have the users manually add that flag to each git push. Beside that, I will also set up an update hook on the […]

Git Baby is a git and github fan, let's start git clone.