git-submodules

Pushing all submodules recursively

…衆ロ難τιáo~ 提交于 2021-02-17 20:15:49
问题 I wrote the below script to push all the changes in the workspace, both in the submodules and the superproject. However, it sounds a little odd that, it is this complex to do what I want. Is there any better way, that I'm missing? #!/bin/bash if [ "$#" -ne 1 ]; then echo "Illegal number of parameters" exit fi SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd "${SCRIPT_DIR}/../submodule1" git status git add -A git commit -m "$1" git push origin master cd "${SCRIPT_DIR}/..

How to auto deploying git repositories with submodules on AWS?

99封情书 提交于 2021-02-17 16:37:35
问题 I have a submodule in my git repository and my directory structure is like, app -- folder1 -- folder2 -- submodule @5855 I have deployed my code on AWS by using autodeploy service. Now, on server I have code in the parent-directory but submodule directories are empty. Q1) How can I get data in submodules. My repository on server is not git repository. Do I need to convert it firstly into git repo and then run submodule commands to get it ? Q2) How can I automate the submodule deployment as

How to auto deploying git repositories with submodules on AWS?

為{幸葍}努か 提交于 2021-02-17 16:36:16
问题 I have a submodule in my git repository and my directory structure is like, app -- folder1 -- folder2 -- submodule @5855 I have deployed my code on AWS by using autodeploy service. Now, on server I have code in the parent-directory but submodule directories are empty. Q1) How can I get data in submodules. My repository on server is not git repository. Do I need to convert it firstly into git repo and then run submodule commands to get it ? Q2) How can I automate the submodule deployment as

How to auto deploying git repositories with submodules on AWS?

ぐ巨炮叔叔 提交于 2021-02-17 16:35:15
问题 I have a submodule in my git repository and my directory structure is like, app -- folder1 -- folder2 -- submodule @5855 I have deployed my code on AWS by using autodeploy service. Now, on server I have code in the parent-directory but submodule directories are empty. Q1) How can I get data in submodules. My repository on server is not git repository. Do I need to convert it firstly into git repo and then run submodule commands to get it ? Q2) How can I automate the submodule deployment as

Can I organize Git submodules in a flat hierarchy?

 ̄綄美尐妖づ 提交于 2021-02-10 04:57:58
问题 I currently working on a .NET project and several .NET libraries which have the following interdependencies (simplified version): Core (library) : no dependencies Testing (library) : dependencies to Core Serialization (library) : dependencies to Core, Testing Client solution : dependencies to Core, Testing, Serialization My goal is to move as much code to the libraries as possible so that I can reuse them in different client solutions. Currently, all these different projects are part of a

Can I organize Git submodules in a flat hierarchy?

泪湿孤枕 提交于 2021-02-10 04:52:09
问题 I currently working on a .NET project and several .NET libraries which have the following interdependencies (simplified version): Core (library) : no dependencies Testing (library) : dependencies to Core Serialization (library) : dependencies to Core, Testing Client solution : dependencies to Core, Testing, Serialization My goal is to move as much code to the libraries as possible so that I can reuse them in different client solutions. Currently, all these different projects are part of a

Can I organize Git submodules in a flat hierarchy?

℡╲_俬逩灬. 提交于 2021-02-10 04:50:18
问题 I currently working on a .NET project and several .NET libraries which have the following interdependencies (simplified version): Core (library) : no dependencies Testing (library) : dependencies to Core Serialization (library) : dependencies to Core, Testing Client solution : dependencies to Core, Testing, Serialization My goal is to move as much code to the libraries as possible so that I can reuse them in different client solutions. Currently, all these different projects are part of a

Adding git submodules automatically (.gitmodules)

北慕城南 提交于 2021-02-08 13:37:10
问题 I have a repo with several submodules. I want to add some others, and the fastest way for me is to use the .gitmodules (which in my opinion should clearly allow any kind of submodule management). However, when editing this file and adding submodules, after a git submodule init nothing is added (except the submodules that were already present before the modification). Is there any solution to add a submodule without going through git submodule add (ie, just by editing the .gitmodules file and

How to use Submodules with EGit

不羁岁月 提交于 2021-02-08 05:21:55
问题 The Eclipse Team Provider for Git works but i do not see any changes for submodules when I use synchronize. I see changes with the diff on the command line and also with tortoise i see the changes. So, does anyone know ho to use Git and Eclipse in a way that synchronize and commit works with submodules? 回答1: The "Working with Submodules" section shows the submodules in the Git Repositories view: From there, you have access to two actions: Selecting the Update Submodule action on a submodule

Git submodule update slow on Windows

杀马特。学长 韩版系。学妹 提交于 2021-02-08 04:59:30
问题 Git submodule seems to be extremely slow on Windows. To test the performance I created 3 bare repos and committed 3 independent messages to them (no files stored). I then added each of these bare repos as submodules in a new git repo and performed a submodule update and it took over 5 seconds. This seems excessive and very noticeable when using 20+ submodules. What could be causing it to take so long? Example files: https://drive.google.com/file/d/1n6fAm16tXtt_1YvXbPHhn150iuw-VGOk/view Run