As projects grow, one question quietly becomes a big one:

seen from Thailand

seen from Thailand

seen from Australia
seen from Indonesia

seen from China
seen from United States
seen from Vietnam
seen from Belarus
seen from China
seen from India
seen from China

seen from India
seen from Albania

seen from Philippines
seen from Philippines

seen from United States
seen from China
seen from Singapore
seen from Indonesia
seen from China
As projects grow, one question quietly becomes a big one:

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
What happens if a submodule repo name changes
What happens if a submodule repo name changes
OK this is kind of an edge case, but if you have a submodule and someone upstream changes it’s name, what should you do?
First you probably want to change the location of the module, so you can now just do a git mv old_name new_name and it will be correct in your directory.
Then inside the submodule, you need to change the origin with git remote remove origin and then add the new location git…
View On WordPress
Github Submodules
When adding code to a git repo you might be referencing some addons that you’re keep locally. In my case I'm working with addons specifically made to work with openframeworks.
Git users are constantly updating their projects with different versions and branches so it can be hard to remember exactly which branch you were using if you go back to try an build your code at a later date.
Submodules are very useful for this purpose. You can basically add a reference to other git repos within your own git repo. The code won't actually live within your repo but it's the reference for the git repo will be there for you to iniate later in time.
The following steps show how to do so:
Create Submodules:
Go to directory of_v0.9.8_osx_release/apps/myNewapp
git submodule add https://github.com/kylemcdonald/ofxCv.git addons/ofxCv
Now you should see a folder you just created with the code from the repo inside!
Install Submodules from fresh Clone:
Go to directory you want clone git clone myReposCloneAddress
Go to the base directory of the repo myReposCloneAddress
Now while in the base directory:
git submodule init
git submodule update
You should now have all your addon folders filled with the code from the repos you made into submodules in the previous steps.
Git: A submodule-aware status
git config --global status.submoduleSummary true
Removing a Git Submodule
mv a/submodule a/submodule_tmp git submodule deinit -f -- a/submodule rm -rf .git/modules/a/submodule git rm -f a/submodule # Note: a/submodule (no trailing slash) # or, if you want to leave it in your working tree git rm --cached a/submodule mv a/submodule_tmp a/submodule
~ https://stackoverflow.com/questions/1260748/how-do-i-remove-a-submodule

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Git 2.8 的平行下載 submodule 加速
Git 2.8 的平行下載 submodule 加速
Git 推出新版的時候,幾家 Git Hosting 都會撰文寫一些重要的進展,像是 GitHub 這次的內容:「Git 2.8 has been released」。 GitHub 這次說明平行下載的範例直接清楚表示出來功能: git fetch --recurse-submodules --jobs=4 用 Google 找了一個 .gitmodules 裡面有很多筆的 repository 測了一下,的確是快了不少…
View On WordPress
Git 2.5 的 worktree
Git 2.5 的 worktree
GitHub 對 Git 2.5 寫的介紹:「Git 2.5, including multiple worktrees and triangular workflows」。 Please note that the worktree feature is experimental. It may have some bugs, and its interface may change based on user feedback. It’s not recommended to use git worktree with a repository that contains submodules. 另外效能上也有改善: Git 2.5 includes performance improvements aimed at large working trees and working…
View On WordPress
Working with submodule, using another project in your project
It often happens that while working on one project, you need to use another project from within it. Perhaps it’s a library that a third party developed or that you’re developing separately and using in multiple parent projects. A common issue arises in these scenarios: you want to be able to treat the two projects as separate yet still be able to use one from within the other.