![]() I used the following command for the batch update for all submodules git submodule status | awk '. The following command updated the target branch in the. removing a file or running a perl rewrite on all files) or information about each commit. branch cd path/to/your/submodule git checkout -b branch -track origin/branch, /repo git add path/to/your/submodule git commit -m Make submodule.Now from your primary repository you still have two modified objects. Just easily I could set it to specific commit or tag. So I ran the following 2 commands to checkout out desired branch and pull latest commit in each submodule git submodule foreach git checkout -B staging origin/staging DESCRIPTION Lets you rewrite Git revision history by rewriting the branches mentioned in the , applying custom filters on each revision. git checkout -b devbranch origin/devbranch Now the submodule is fixed on the development branch instead of HEAD of master.The above command will run for each submodule. gitmodules is not showing the submodule in the list. ![]() This will checkout all your desired files from the given folder to the current directory. ![]() Strangely, I just noticed when I switch to the 'dev' branch that the folder of the submodule I removed is still there, although the. Filter the master branch to your directory and remove empty commits git filter-branch -prune-empty -subdirectory-filter YOURFOLDERNAME filterfrombranch. ![]() Now, if I clone the devrepo and do submodule init in another PC, I can see the submodule is pointing to the latest commit of the developmentbranch of subdevrepoa. The command I used are: sudo add-apt-repository ppa:git-core/ppa sudo apt-get update apt-get install -only-upgrade git. I figured out a solution that worked for me. git submodule add -b developmentbranch .![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |