git submodules really are awful but sometimes they're the hero you need, even if they're not the hero you deserve.

(This PSA brought to you by me ripping out my non existent hair trying to replace an old repo with a new one at the same submodule location. TL:DR - if you're still seeing the old stuff you want 'git submodule sync'. Ungh)

#git #submodule #insanity

Tired of my struggle with git today...

I happen to have a nested git repository. Which is the public directory inside my Hugo framework. Git has a solution for that called: submodule.

But the assumption in the documentation seems to be that you add a submodule from a remote server and basically clone it. But I generate it locally.

So I have to remove public from the tracked files (git rm -r --cache) then cd into public, then git init, then git add and commit all stuff in public, then I can add the submodule from the projects root...

I think I am on the right track? Am I?

#linux #commandline #git #submodule

#DevLog: #Anklang #Submodule Purge

🚧 #Github release tar/zip archives cannot include submodule sources
📥 So, we now fetch all external sources as tarballs (faster anyway)
🧹 Deleted .gitmodules and all submodule build rules

#100DaysOfCode #Packaging #Git

A shallow #Git clone with shallow clones of the #submodule’s:

git clone --depth=1 \ --recurse-submodules \ --shallow-submodules \ <URL>

#note

Akkoma

I'm about to use a #git #submodule and I don't know that I'm ever going to forgive myself for this.

Wiedermal bis halb 2 wach und am Videos/Infos suchen bezüglich #GameBoy Savegames Backup erstellen...

Meine alten Spiele gehen noch und ich will die retten aber hab selber kaum Plan von und die meiste Hardware dafür #FlashBoy #Submodule usw. kann man nirgends kaufen.

Help pls?

.git 外链情况下 #submodule 总是怪怪的,算了,还拿回来,但是用 post-commit post-merge 两个 #hook 设置可写属性,这样就能扔 #坚果云 里面同步了。 #Git #Tips
#Git 的 .git 目录如果是 #symlink 的话,加上启用了 #submodule,git命令有可能会出错(找不到目录什么的),解决方法:修改 .git/module/Xxx/config,设置 [core]中的worktree 路径。 #Tips