User Tools

Site Tools


git:git-submodules

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
git:git-submodules [2024/11/30 19:16] – [Working with single submodule] admingit:git-submodules [2024/12/12 08:44] (current) admin
Line 67: Line 67:
 If the submodule is not in the correct branch, these commands can be used to list the branches and set to the correct one (ex master) If the submodule is not in the correct branch, these commands can be used to list the branches and set to the correct one (ex master)
 <code bash> <code bash>
-git -C studwork /path/to/mysubmodule branch +git -C /path/to/mysubmodule branch 
-git -C studwork /path/to/mysubmodule checkout master+git -C /path/to/mysubmodule checkout master
 </code> </code>
 In general a git **command** on submodule can be acheived from main git repo by : In general a git **command** on submodule can be acheived from main git repo by :
 <code bash> <code bash>
-git -C studwork /path/to/mysubmodule command+git -C /path/to/mysubmodule command
 </code> </code>
  
  
  
git/git-submodules.txt · Last modified: 2024/12/12 08:44 by admin