Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 600 Bytes

File metadata and controls

43 lines (35 loc) · 600 Bytes
title 使用 uv 的工作流程
published 2025-06-01 01:00:00 -0700
modified 2025-07-13 16:13:21 -0700
tags
python
uv

新建项目:

uv init <project>
cd <project>
git add .
git commit -m "Initial commit"

进行编辑和提交修改:

# uv add requests
# ...
git add [...]
git commit -m "[...]"

上传到远程仓库:

git remote add origin git@github.com:<USERNAME>/<REPO>.git
git branch -M main
git push -u origin main

其他机器拉取后:

git clone https://github.com/<USERNAME>/<REPO>.git
cd <REPO>
# 同步环境
uv sync