This commit is contained in:
Your Name
2024-11-12 00:07:46 +08:00
commit b00f025742
24 changed files with 1912 additions and 0 deletions

71
README.md Normal file
View File

@@ -0,0 +1,71 @@
# shellscripts
## Getting started
克隆的时候需要添加子仓库
```shell
git clone --recurse-submodules https://gitlab.dockless.eu.org/lingyuzeng/micromamba.git
```
## 用户认证说明
安装用户是可以使用的其他用户不一定能使用jupyterhub服务。
## 更新micromamba子仓库
因为 micromamba 是作为一个子模块submodule包含在你的 shellscripts 仓库中。因此,不能直接在父仓库中修改子模块的内容。你需要在子模块的仓库中进行更改,然后更新父仓库以指向子模块的新提交。以下是操作步骤:
进入子模块目录:首先,进入子模块(在这个案例中是 micromamba的目录。
```shell
cd micromamba
```
检查当前分支:确保你在正确的分支上进行更改。
```shell
git branch
```
如果需要,切换到适当的分支:
```shell
git checkout <branch-name>
```
修改文件:进行所需的更改
提交更改:添加并提交更改到子模块的仓库。
```shell
git add ./install.sh
git commit -m "更新 函数"
```
推送更改:将更改推送到远程子模块仓库。
```shell
git push origin <branch-name>
```
返回父仓库目录:一旦子模块的更改被推送,返回到父仓库的目录。
```shell
cd ..
```
更新子模块引用:在父仓库中更新子模块引用,以指向子模块的新提交。
```shell
git add micromamba
git commit -m "更新子模块 micromamba"
```
推送父仓库更改:最后,将父仓库的更改推送到远程仓库。
```shell
git push origin <branch-name>
```