Tag: git submodules

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 […]

Get commit date of a given SHA1 (submodules) commit

very special problem: I have integrated submodules and I get my submodules 8-char long referenced commit state by $ git ls-tree HEAD MY_SUBMODULE | awk ‘{print $3}’ | cut -c -8 03B446AB Now I want to get the commit date of the submodule, preferably in format yyyy-mm-dd. Do you have a idea how to handle […]

How to include subfolder from one git repo to another?

Say I have Project1 in a git repo. Within Project1 there is a subfolder that I want to include in Project1+ (Project2, Project3, etc.) By “include” I don’t mean copy-and-paste. I want a reference to Project1 so that if I make changes to Project1 I can automatically integrate those changes in Projects1+. Further, I want […]

Jenkins Git change submodule path

Is there a way to change the submodule path to pull from a different repository during build time?

Git Submodule: Which commit (hash) do I need?

When I roll back my git working directory to a particular commit, the submodule shows as “modified.” The submodule is checked in and has no modified files, but it’s at different commit than it needs to be. How can I find out the name/hash of the correct commit?

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