Tag: git submodules

How do I properly implement git submodules using Gitolite?

I would like to create submodules within my hosted repository using Gitolite. Submodules are easy enough in git outside of Gitolite. However, Gitolite seems to complicate things.

Trying to update git submodule with Ruby, how to chdir before executing shell command?

I have some git repo X that has a submodule in the subfolder foo/bar pointing to repo Y. I’m trying to get my CI system to update the submodule automatically, I mean pursuing this commands from RAKE: $ cd foo/bar $ git pull origin master But when my RAKE task tries to perform this, it […]

How to replace a git submodule with vendored in code?

I’ve been in the process of getting rid of git submodules lately. Sometimes I’m adding new files where there’s been the submodule. I’m looking for a nice way to drop a submodule, and add some files in it’s place without creating merge problems for pulling users. Here’s what I’m talking about: This is a commit […]

when dev repo does not map 1-to-1 with production work tree, then is this a good use-case for git submodules?

I am fairly new to git and just figured out the basics of how to update a live website from my local dev repo, via the method explained by these guys: http://danielmiessler.com/study/git/#website http://toroid.org/ams/git-website-howto (‘The one-line summary ^^^ : push into a remote repository that has a detached work tree, and a post-receive hook that runs […]

Can I push my git submodules to Github without using extra repositories?

I have a Github “Gold” account and I’m starting to run out of my allotted repositories. 🙁 Luckily, I have a few very small projects that are interrelated and could be treated as submodules of a bigger project. I’m a bit of a novice when it comes to submodules, so forgive me if my question […]

How to reverse a `git submodule init`

To get a project started, I had to perform git submodule init followed by git submodule update . But now that the cat’s out of the bag, I was wondering if there’s something I have to do to pack it back up before committing back up to the repository. Any ideas?

'Git could not checkout' error is causing problem while deploying an app on engineyard

I’m trying to deploy an app on engine yard. I’m using rails 2.3.5 and ruby 1.8.7 When I try to deploy it, ~> Deploying revision 481f05e emergency commit :: running git checkout -q ‘481f05e42f3e13b5eda7e598a1b797b031c9ca5e’ :: running git submodule sync Synchronizing submodule url for ” :: running git submodule update –init No submodule mapping found in […]

git nested projects

I’ve a stable and functioning project X. I want a module to be added to it and that’s is from some other project Y on github in my modules directory. I’ve git remote add Y git@github.neel/Y.git followed by git fetch Y But there there is nothing on Y directory yet . I followed http://progit.org/book/ch6-7.html and […]

Git submodule remote server

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/libraries/ /backend/application/helpers/ …and my frontend: /frontend/application/libraries/ /frontend/application/helpers/ So far everything is configured and it works! Furthermore I have remote servers for the frontend and the backend. Now I want to get the following: […]

Add repository to a git tree

I have a git repository online and I use, as many do, to keep track of my programs. It worked all fine with the usual procedure from the root of my directory’s tree: git add . git commit git push origin master When one day I found a subdirectory in my tree have become green […]

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