Tag: git submodules

Can't add existing Git repository into new repository

I’m trying to create a new repository and add two projects to it. One of the projects was already under Git source control so I copied the project and removed the .git folder and deleted the repository I had for it. When I add the projects to my repository the one that wasn’t under source […]

Git tries to commit submodules files into parent project

So I have a project with some submodules. All this have worked great until I today tried the Visual studio git tools. I tried to commit a submodule in there. I have since read online that vs git tools don’t support submodules properly. So it seems I am left with a bit of a mess […]

Error compiling c++ boost libraries from github

I have been trying to compile the c++ boost libraries downloaded from the boostorg github repo and I get the following error. …updating 968 targets… darwin.compile.c++ bin.v2/libs/atomic/build/darwin-4.2.1/release/threading-multi/lockpool.o libs/atomic/src/lockpool.cpp:31: error: expected unqualified-id before numeric constant libs/atomic/src/lockpool.cpp:31: error: expected `)’ before numeric constant libs/atomic/src/lockpool.cpp:55: error: expected `}’ at end of input libs/atomic/src/lockpool.cpp:55: error: expected `}’ at end […]

How to add a Git submodule from a shared directory over network?

I have a shared directory on a computer in LAN which contains a Git repository. Now I am trying to add it as a submodule to one of my repositories. I have tried : git.exe submodule add — \\Remote-PC\SharedDirectory\module1 module1 But when I run this command, it fails with the following error : repo URL: […]

Push local git repo with sub repos (vim)

I’m using Vim and pathogen as a plugin manager, and i have cloned a lot of plugins into my .vim folder. Now i want my custom vim to be easily accessible on multiple systems, so i made my .vim directory a git repo. I added everything with ‘git add .’ and pushed it to a […]

git submodule add failed with bitbucket repo

I’m trying to add a repo as a submodule for my project as it will depend on it. The project is hosted on bitbucket, and when I tried to add it using this: git submodule add https://bitbucket.org/blueluna/transmissionrpc, I got the following: Cloning into ‘transmissionrpc’… fatal: repository ‘https://bitbucket.org/blueluna/transmissionrpc/’ not found Clone of ‘https://bitbucket.org/blueluna/transmissionrpc’ into submodule path […]

How to deploy patched third party library with composer install

First time asker – I’ve had trouble finding an answer to this one. I’ve forked a GitHub repo of a vendor library I use in my application. This has allowed me to patch the third party vendor library. To introduce the forked repository into my application I’ve then used a git submodule – as per […]

Checkout a Specific Folder within a Git Repository

I have multiple projects in different repositories: tools thirdparty shared ├──Common ├──Exceptions multimedia ├──VolumeControl ├──VideoRenderer android ├──Audio For example, android depends on shared/Common, shared/Exceptions, tools, thirdparty and multimedia/VolumeControl. I tried: Submodules:https://git-scm.com/book/en/v2/Git-Tools-Submodules sparse-checkout:http://jasonkarns.com/blog/subdirectory-checkouts-with-git-sparse-checkout/ However, they both checkout or bring-in multimedia folder within the android folder. Instead, I want it like: android ├──Audio ├──VolumeControl (brought in from […]

What does PHP Composer provide that Git Submodules does not?

I am working on a project that uses Composer (https://getcomposer.org/) to reference various PHP libraries. I am also using git submodules (http://git-scm.com/docs/git-submodule) to reference various JavaScript libraries (where the libraries point at particular release tags, e.g., “v1.2.34”). In order to simplify the project, I am considering ditching Composer in favour of only using submodules unless […]

Git not tracking a subdirectory

I am pretty new to Git and it seems I always have some issue. I created a repo for my WordPress project but it isn’t tracking the “Themes” folder. I think the issue is in the themes folder I pull my starter template from another repo. I removed the Git tracking (since it was attached […]

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