The simplest model of using submodules in a project would be if you were simply consuming a subproject and wanted to get updates from it from time to time but were not actually modifying anything in your checkout. Let’s walk through a simple example there. If you want to check for new...
When the parent repository is cloned, it includes the reference to any submodules and the submodules require initialization. Your repository tracks the submodule’s checked out commit. If there are any updates to the submodule, the files will not automatically update your working directory. ...
The submodule’s$GIT_DIR/configfile would come into play when runninggit push --recurse-submodules=checkin the superproject, as this would check if the submodule has any changes not published to any remote. The remotes are configured in the submodule as usual in the$GIT_DIR/configfile. The...
Pulling a branch means to fetch it and merge it. See also git-pull[1]. push Pushing a branch means to get the branch's head ref from a remote repository, find out if it is an ancestor to the branch's local head ref, and in that case, putting all objects, which are reachable ...
Using --recurse-submodules can only fetch new commits in already checked out submodules right now. When e.g. upstream added a new submodule in the just fetched commits of the superproject the submodule itself can not be fetched, making it impossible to check out that submodule later without...
pulling a repository containing submodules however, these will not be checked out by default; theinitandupdatesubcommands will maintain submodules checked out and at appropriate revision in your working tree. Submodules are composed from a so-called gitlink tree entry in the main repository that ...
git submodule init不拉取最新提交Git正在做它应该做的事情。git submodule update会将你的子模块设置为...
git stash push -S --index:This git stash option tries to restore not only the changes in your working directory but also the ones staged (in the index). However, if there are conflicts, it might fail.For example- git stash apply --index ...
git submoduleupdate One major difference between "submodule update" and "submodule add" is that "update" checks out a specific commit, rather than the tip of a branch. It's like checking out a tag: the head is detached, so you're not working on a branch. ...
aws_ecr_docker_login.sh - authenticates Docker to AWS ECR, inferring the ECR registry from the current AWS Account ID and Region aws_ecr_docker_build_push.sh - builds a docker image and pushes it to ECR with not just the latest docker tag but also the current Git hashref and Git tags...