git add new-subdirectory 提交并推送更改到子模块 Git 仓库: git commit -m "Move subdirectory to new Git repo" git push origin master 回到主项目中,更新子模块: git submodule update --remote 这样就完成了将子模块中的子文件夹移动到新的 Git 仓库的过程。
Git submodules are a feature of Git that allows you to include one Git repository as a subdirectory within another Git repository. This can be useful if you want to use code files from another repository in your project without actually copying them into your repository. When you add a Git ...
Git submodules Git submodules allow you to keep a Git repository as a subdirectory of another Git repository. Git submodules are simply a reference to another repository at a particular snapshot in time. Git submodules enable a Git repository to incorporate and track version history of external...
If the repository is auto-discovered via a .git file (e.g. from submodules, or a linked worktree), the .git location would be the final location where the .git directory is, not where the .git file is. The pattern can contain standard globbing wildcards and two additional ones, **/...
Submodule path 'DbConnector': checked out 'c3f01dc8862123d317dd46284b05b6892c7b29bc' Now yourDbConnectorsubdirectory is at the exact state it was in when you committed earlier. There is another way to do this which is a little simpler, however. If you pass--recurse-submodulesto thegit...
--submodule[=<format>] Specify how differences in submodules are shown. When specifying --submodule=short the short format is used. This format just shows the names of the commits at the beginning and end of the range. When --submodule or --submodule=log is specified, the log format is...
move a path between directories that are "in cone" (i.e. expected to be materialized in the working tree) and "out of cone" (i.e. expected to be hidden). The handling of such cases has been improved. * Earlier, HTTP transport clients learned to tell the server side ...
* "git maintenance" scheduler learned to use systemd timers as a possible backend. * "git diff --submodule=diff" showed failure from run_command() when trying to run diff inside a submodule, when the user manually removes the submodule directory. ...
it updates the destination directory atomically. In order to do this, it uses a git worktree in a subdirectory of the --root and flips a symlink. git-sync can pull over HTTP(S) (with authentication or not) or SSH. git-sync can also be configured to make a webhook call upon successful...
detachedHead Advice shown when you used git-checkout(1) to move to the detach HEAD state, to instruct how to create a local branch after the fact. amWorkDir Advice that shows the location of the patch file when git-am(1) fails to apply it. rmHints In case of failure in the output...