add pip_upload

This commit is contained in:
albertxin
2025-12-25 11:53:49 +08:00
parent fd47ac29d1
commit 9bdafb061c
3 changed files with 29 additions and 1 deletions

BIN
images/image-13.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
images/image-14.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

View File

@@ -1,3 +1,31 @@
# 上传已有流程
1. 创建一个空仓库
1. 创建一个空仓库,参考[创建空仓库](create_empyt.md)
2. 服务器上操作
- 在流程的路径中
```shell
cd /share/nas3/zhushixin/test/test_1 # 注意文件名称与仓库名称一致
git init
cat > .gitignore << EOF
test
*.log
*.pyc
EOF
# 我这里创建几个测试文件或者文件夹
touch test.py
mkdir test_dir
# 准备上传
git add .
git commit -m "first commit"
## 将远程仓库地址添加到本地仓库
git remote add origin http://192.168.1.104:8144/pub_read/test_1.git
## 推送到远程仓库
git push -u origin master
```
3. 在推送的时候需要输入用户名和密码
![](images/image-13.png)
- 这里使用gitea的用户名和密码
- 输入用户和密码之后就能够上传成功
![alt text](images/image-14.png)