You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace path/to/submodule with the relative path within your project where you'd like the BELLATRIX submodule to reside. Initialize and Clone the Submodule: If you're adding the submodule for the first time, initialize your local configuration file and clone the BELLATRIX repository as follows:
55
55
56
-
`git submodule update --init --recursive`
56
+
git submodule update --init --recursive
57
57
58
58
Checking Out a Specific Tag (Release Version)
59
59
60
60
After adding BELLATRIX as a submodule, you might want to use a specific release version rather than the latest commit on the main branch.
61
61
62
62
Navigate to the Submodule Directory: Change into the BELLATRIX submodule directory within your project:
63
63
64
-
`cd path/to/submodule`
64
+
cd path/to/submodule
65
65
66
66
Fetch All Tags from the BELLATRIX Repository: To ensure you have a list of all available tags, fetch them:
67
67
68
-
`git fetch --tags`
68
+
git fetch --tags
69
69
70
70
Checkout the Desired Tag: Check out the specific tag (release version) you want to use by replacing <tagname> with the desired version:
71
71
72
-
`git checkout tags/<tagname>`
72
+
git checkout tags/<tagname>
73
73
74
74
For example, if you want to check out version v3.9.0.0, you would use: git checkout tags/v3.9.0.0
75
75
76
76
Commit the Submodule Change: Navigate back to your project's root directory, and commit the change to the submodule reference:
77
77
78
-
`cd ../..`
79
-
`git add path/to/submodule`
80
-
`git commit -m "Update BELLATRIX submodule to v3.9.0.0"`
78
+
cd ../..
79
+
git add path/to/submodule
80
+
git commit -m "Update BELLATRIX submodule to v3.9.0.0"
81
81
82
82
This process ensures that your project uses a specific, fixed version of BELLATRIX, providing stability and consistency across environments or deployments.
0 commit comments