git add new-subdirectory 提交并推送更改到子模块 Git 仓库: git commit -m "Move subdirectory to new Git repo" git push origin master 回到主项目中,更新子模块: git submodule update --remote 这样就完成了将子模块中的子文件夹移动到新的 Git 仓库的
Git addresses this issue using submodules. Submodules allow you to keep a Git repository as a subdirectory of another Git repository. This lets you clone another repository into your project and keep your commits separate. Starting with Submodules We’ll walk through developing a simple project t...
When working with submodules, a common pattern of confusion and error is forgetting to push updates for remote users. If we revisit theawesomelibrarywork we just did, we pushed only the updates to the parent repository. Another developer would go to pull the latest parent repository and it wo...
A submodule allows you to keep another Git repository in a subdirectory of your repository. The other repository has its own history, which does not interfere with the history of the current repository. This can be used to have external dependencies such as third party libraries for example. ...
* "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. ...
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 ...
HEAD $head_name || die "$(gettext "Could not move back to $head_name")" ;; esac }run_specific_rebase () { if [ "$interactive_rebase" = implied ]; then GIT_EDITOR=: export GIT_EDITOR autosquash= fi . git-rebase--$type }run_pre_rebase_hook () { ...
t2300-cd-to-toplevel.sh t2400-worktree-add.sh t2401-worktree-prune.sh t2402-worktree-list.sh t2403-worktree-move.sh t2404-worktree-config.sh t2405-worktree-submodule.sh t2406-worktree-repair.sh t2407-worktree-heads.sh t2500-untracked-overwriting.sh t2501-cwd-empty.sh t3000-ls-files-others...
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...
--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...